mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
PERF: missing index on useractions making user page slow
This commit is contained in:
parent
e074651fdc
commit
2b2d0e803f
1 changed files with 5 additions and 0 deletions
5
db/migrate/20150514043155_add_user_actions_all_index.rb
Normal file
5
db/migrate/20150514043155_add_user_actions_all_index.rb
Normal file
|
@ -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 a new issue