mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: Add score indexes for top topics.
This commit is contained in:
parent
4efb3069e2
commit
1867442fbc
@ -0,0 +1,9 @@
|
||||
class AddScoresIndexesToTopTopics < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :top_topics, :daily_score
|
||||
add_index :top_topics, :weekly_score
|
||||
add_index :top_topics, :monthly_score
|
||||
add_index :top_topics, :yearly_score
|
||||
add_index :top_topics, :all_score
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user