summaryrefslogtreecommitdiff
path: root/lib/api/notes.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2015-10-29 17:51:49 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2015-10-30 12:00:58 +0100
commita9df714764d6138bf162acd82b780ca82a21864b (patch)
tree5b04d07bc66a3139e6fca1bd6bd5d977ccc78634 /lib/api/notes.rb
parentbba46623c20de52942c85eb2aba3649e3f4ba296 (diff)
downloadgitlab-ce-a9df714764d6138bf162acd82b780ca82a21864b.tar.gz
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.
Diffstat (limited to 'lib/api/notes.rb')
0 files changed, 0 insertions, 0 deletions