Files
gitlabhq/lib
Stan Hu 4be77d0b05 Improve multiple branch push performance by memoizing permission checking
If you attempt to push thousands of branches at once, the 60-second timeout
will occur because GitAccess checking does a lot of work to check if the
user has permission to push to a branch. This changes does two things:

1. Instead of making 1 DB query per branch push, use a memoized list of protected branches to check
2. Memoize what permissions the user has to perform on this project

On a test of 10,000 branch pushes, this prevents gitlab-shell from hitting the 60-second
timeout.

Closes #17225
2016-05-09 01:17:14 -07:00
..
2016-04-22 22:08:38 +02:00
2016-03-02 22:19:36 -05:00
2015-10-03 01:29:58 -05:00
2015-11-10 12:51:50 +01:00
2016-04-12 17:30:11 -04:00
2014-08-14 15:48:14 +04:00
2015-11-10 12:51:50 +01:00