PERF: missing index on useractions making user page slow
This commit is contained in:
parent
e074651fdc
commit
2b2d0e803f
|
@ -0,0 +1,5 @@
|
|||
class AddUserActionsAllIndex < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :user_actions, [:user_id, :created_at, :action_type], name: 'idx_user_actions_speed_up_user_all'
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue