discourse/db
Alan Guo Xiang Tan dcf84fce7b
PERF: Add index for TopicTimer#topic_id (#17680)
When viewing a topic, we execute two queries to fetch the topic's
public topic timer and slow mode timer. The former query happens to be
able to use a unique index but the latter has to do a seq scan which is
slow. The query itself is not expensive but since viewing a topic is a
hot path, the little cuts add up overtime and the query itself
contributes significantly to the load of the database.
2022-07-27 16:21:11 +08:00
..
fixtures DEV: Add more color schemes (#17398) 2022-07-08 16:46:32 -05:00
migrate PERF: Add index for TopicTimer#topic_id (#17680) 2022-07-27 16:21:11 +08:00
post_migrate DEV: drop unused column `flair_url` from groups table. (#17179) 2022-06-22 00:15:05 +05:30
api_test_seeds.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00