0
0
Fork 0

Low-hanging fruit of query optimization, these indices were missing

This commit is contained in:
Eugen Rochko 2017-04-07 00:04:09 +02:00
parent 8cb7d157bd
commit 31597fd377
2 changed files with 12 additions and 1 deletions

View file

@ -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