Use a subquery with IDs only for find_by_any_email
This further improves performance of User.find_by_any_email and is roughly twice as fast as the previous UNION setup. Thanks again to @dlemstra for suggesting this.
Showing
Please register or sign in to comment