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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
0085f5e0
Commit
0085f5e0
authored
Aug 31, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start improving memory use on I/E
parent
d0f5b3c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lib/gitlab/import_export/project_tree_restorer.rb
lib/gitlab/import_export/project_tree_restorer.rb
+6
-3
No files found.
lib/gitlab/import_export/project_tree_restorer.rb
View file @
0085f5e0
...
...
@@ -59,8 +59,11 @@ module Gitlab
next
unless
relation_hash_list
relation_hash
=
create_relation
(
relation_key
,
relation_hash_list
)
saved
<<
restored_project
.
append_or_update_attribute
(
relation_key
,
relation_hash
)
[
relation_hash_list
].
flatten
.
each_slice
(
10
)
do
|
relation_hash_batch
|
relation_hash
=
create_relation
(
relation_key
,
relation_hash_batch
)
saved
<<
restored_project
.
append_or_update_attribute
(
relation_key
,
relation_hash
)
end
end
saved
.
all?
end
...
...
@@ -77,7 +80,7 @@ module Gitlab
@project
.
update_columns
(
project_params
)
@project
end
git
che
def
project_params
@tree_hash
.
reject
do
|
key
,
value
|
# return params that are not 1 to many or 1 to 1 relations
...
...
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