Skip to content
Snippets Groups Projects

Split models into smaller chunks to avoid oversized db transactions

When testing the incoming cgit lister on that instance: http://hdiff.luite.com/cgit/, the lister successfully retrieves all hosted repositories but fails to flush the results into the local lister database (python3 process ended up hanging).

The issue came from the fact the underlying db transaction was too large. The solution to resolve the issue is to split repo models into smaller chunks to avoid that behavior. Processing like this also flushes results to database more frequently.

Related #1659 (closed)


Migrated from D1660 (view on Phabricator)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading