mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: missing index on useractions making user page slow
This commit is contained in:
parent
e074651fdc
commit
2b2d0e803f
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 New Issue
Block a user