This website requires JavaScript.
Explore
Help
Sign in
kotovalexarian-likes-gitlab
/
gitlab-org--gitlab-foss
Watch
1
Star
0
Fork
You've already forked gitlab-org--gitlab-foss
0
Code
Releases
Activity
c724e639a9
gitlab-org--gitlab-foss
/
config
/
initializers
/
batch_loader.rb
4 lines
96 B
Ruby
Raw
Normal View
History
Unescape
Escape
Add latest changes from gitlab-org/gitlab@master
2021-02-03 16:09:17 -05:00
# frozen_string_literal: true
Batchload blobs for diff generation After installing a new gem, batch-loader, a construct can be used to queue data to be fetched in bulk. The gem was also introduced in both gitlab-org/gitlab-ce!14680 and gitlab-org/gitlab-ce!14846, but those mrs are not merged yet. For the generation of diffs, both the old blob and the new blob need to be loaded. This for every file in the diff, too. Now we collect all these so we do 1 fetch. Three `.allow_n_plus_1_calls` have been removed, which I expect to be valid, but this needs to be confirmed by a full CI run. Possibly closes: - https://gitlab.com/gitlab-org/gitlab-ce/issues/37445 - https://gitlab.com/gitlab-org/gitlab-ce/issues/37599 - https://gitlab.com/gitlab-org/gitlab-ce/issues/37431
2017-11-03 09:16:43 -04:00
Rails
.
application
.
config
.
middleware
.
use
(
BatchLoader
::
Middleware
)
Copy permalink