2
0
Fork 0
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:
Sam 2014-08-04 19:07:55 +10:00
parent 0ccb8e17cb
commit cb0ecd9ff1
16 changed files with 117 additions and 79 deletions

View file

@ -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