gitlab-org--gitlab-foss/lib/gitlab/github_import
Yorick Peterse 71ed7987d3
Perform pull request IO work outside a transaction
When importing a GitHub pull request we would perform all work in a
single database transaction. This is less than ideal, because we perform
various slow Git operations when creating a merge request. This in turn
can lead to many DB connections being used, while just waiting for an IO
operation to complete.

To work around this, we now move most of the heavy lifting out of the
database transaction. Some extra error handling is added to ensure we
can resume importing a partially imported pull request, instead of just
throwing an error.

This commit also changes the specs for IssueImporter so they don't rely
on deprecated RSpec methods.
2018-06-04 18:33:56 +02:00
..
importer Perform pull request IO work outside a transaction 2018-06-04 18:33:56 +02:00
representation
bulk_importing.rb
caching.rb
client.rb
issuable_finder.rb
label_finder.rb
markdown_text.rb
milestone_finder.rb
page_counter.rb
parallel_importer.rb Backports every CE related change from ee-44542 to CE 2018-05-04 17:33:26 +02:00
parallel_scheduling.rb
rate_limit_error.rb
representation.rb
sequential_importer.rb
user_finder.rb