mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: allow looking up incoming email by user_id
This speeds up the ability to remove users from the system
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddIncomingEmailByUserIdIndex < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_index :incoming_emails, [:user_id], where: 'user_id IS NOT NULL'
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user