add index on stream_entries table (#5793)
This commit is contained in:
parent
f0d4c7d7ab
commit
dc1ebd45a3
2 changed files with 9 additions and 2 deletions
7
db/migrate/20171129172043_add_index_on_stream_entries.rb
Normal file
7
db/migrate/20171129172043_add_index_on_stream_entries.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class AddIndexOnStreamEntries < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
commit_db_transaction
|
||||
add_index :stream_entries, [:account_id, :activity_type, :id], algorithm: :concurrently
|
||||
remove_index :stream_entries, name: :index_stream_entries_on_account_id
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue