Skip to content

WIP Speed up login part1

This MR speeds up the User.by_login method a little bit.
It moves the logic to ruby so the db doesn't have to compare two slow fields.

See https://gitlab.com/gitlab-org/gitlab-ce/issues/2341#note_2146984

cc @jacobvosmaer

Merge request reports