mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: add index on user auth tokens (for user lookups)
This speeds up user destroy cause we cascade looking up all the tokens for a user
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddIndexOnUserAuthTokenUser < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_index :user_auth_tokens, [:user_id]
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user