Low-hanging fruit of query optimization, these indices were missing
This commit is contained in:
1 parent
8cb7d157bd
commit
31597fd377
2 files changed
+12
-1
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user