mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 09:32:48 +08:00
PERF: missing index on notifications
this was slowing down acting on a post
This commit is contained in:
parent
0bb78ff53c
commit
1aa7cf842a
|
@ -0,0 +1,5 @@
|
|||
class AddIndexOnPostNotifications < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :notifications, [:user_id, :topic_id, :post_number]
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user