mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
PERF: store topic views in a topic view table
* cut down on storage of the work Topic, 3 times per row (in 2 indexes) * only store one view per user per topic * only store one view per ip per topic
This commit is contained in:
parent
0ccb8e17cb
commit
cb0ecd9ff1
16 changed files with 117 additions and 79 deletions
|
@ -115,7 +115,6 @@ end
|
|||
# Table name: incoming_links
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# topic_id :integer
|
||||
# created_at :datetime
|
||||
# user_id :integer
|
||||
# ip_address :inet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue