Skip to content

Improve User.by_login performance

yorickpeterse-staging requested to merge user-by-login-performance into master

This greatly speeds up the performance of User.by_login. I adopted some changes from @haynes in this patch, the credits go to him for coming up with those originally.

This MR is currently based on the branch project-find-with-namespace-performance which is used for !1531 (merged). Once said MR has been merged I'll rebase this one based on the master branch. The only actual commit of this MR is 297a35307728b2a13682268822f03e043cf1b52f.

cc @haynes @jacobvosmaer @dzaporozhets

Fixes #2341 (closed)

Merge request reports