Skip to content
Snippets Groups Projects

Prepare 11.0 RC6 EE release

Merged Alessio Caiazza requested to merge 11-0-stable-ee-prepare-rc6 into 11-0-stable-ee
4 files
+ 121
29
Compare changes
  • Side-by-side
  • Inline
Files
4
  • 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.
---
title: Move PR IO operations out of a transaction
merge_request:
author:
type: performance
Loading