summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2015-10-29 12:05:47 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2015-10-30 12:00:58 +0100
commit24c8f42278844cf48cdd9871b8285445379623f0 (patch)
tree178c430017076126db2d0b3e6fc84276270707d8 /lib/api
parent0a6aaf256900ab47058d03d3b74883420c4643ae (diff)
downloadgitlab-ce-24c8f42278844cf48cdd9871b8285445379623f0.tar.gz
Use a UNION for User.find_by_any_email
This is significantly faster than using a sub-query, at least when run on the GitLab.com production database. The benchmarks are a lot slower now with these changes, most likely due to PostgreSQL choosing a different (and less efficient) plan based on the amount of data present in the test database. Thanks to @dlemstra for suggesting the use of a UNION.
Diffstat (limited to 'lib/api')
0 files changed, 0 insertions, 0 deletions