Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3d94dd84
Commit
3d94dd84
authored
Feb 10, 2020
by
nmilojevic1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment about allwoing n+1 calls
parent
7b1f1869
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
lib/tasks/gitlab/import_export/import.rake
lib/tasks/gitlab/import_export/import.rake
+5
-0
No files found.
lib/tasks/gitlab/import_export/import.rake
View file @
3d94dd84
...
@@ -129,6 +129,11 @@ class GitlabProjectImport
...
@@ -129,6 +129,11 @@ class GitlabProjectImport
def
with_isolated_sidekiq_job
def
with_isolated_sidekiq_job
Sidekiq
::
Testing
.
fake!
do
Sidekiq
::
Testing
.
fake!
do
with_request_store
do
with_request_store
do
# If you are attempting to import a large project into a development environment,
# you may see Gitaly throw an error about too many calls or invocations.
# This is due to a n+1 calls limit being set for development setups (not enforced in production)
# https://gitlab.com/gitlab-org/gitlab/-/merge_requests/24475#note_283090635
# For development setups, this code-path will be excluded from n+1 detection.
::
Gitlab
::
GitalyClient
.
allow_n_plus_1_calls
do
::
Gitlab
::
GitalyClient
.
allow_n_plus_1_calls
do
measurement_enabled?
?
with_measuring
{
yield
}
:
yield
measurement_enabled?
?
with_measuring
{
yield
}
:
yield
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment