mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 17:52:45 +08:00
PERF: Add index for post_search_data
and topic_search_data
.
This commit is contained in:
parent
4791d992dc
commit
b7d8bbc095
6
db/migrate/20190408082101_add_search_data_indexes.rb
Normal file
6
db/migrate/20190408082101_add_search_data_indexes.rb
Normal file
@ -0,0 +1,6 @@
|
||||
class AddSearchDataIndexes < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_index :topic_search_data, [:topic_id, :version, :locale]
|
||||
add_index :post_search_data, [:post_id, :version, :locale]
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user