Low-hanging fruit of query optimization, these indices were missing
This commit is contained in:
parent
8cb7d157bd
commit
31597fd377
2 changed files with 12 additions and 1 deletions
|
@ -0,0 +1,7 @@
|
|||
class AddNotificationsAndFavouritesIndices < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_index :notifications, [:activity_id, :activity_type]
|
||||
add_index :accounts, :url
|
||||
add_index :favourites, :status_id
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue