mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
PERF: missing index on notifications
this was slowing down acting on a post
This commit is contained in:
parent
0bb78ff53c
commit
1aa7cf842a
1 changed files with 5 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddIndexOnPostNotifications < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :notifications, [:user_id, :topic_id, :post_number]
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue