discourse/db/migrate/20150617080349_add_index_on_post_notifications.rb
Sam 1aa7cf842a PERF: missing index on notifications
this was slowing down acting on a post
2015-06-17 18:05:52 +10:00

5 lines
149 B
Ruby

class AddIndexOnPostNotifications < ActiveRecord::Migration
def change
add_index :notifications, [:user_id, :topic_id, :post_number]
end
end