Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G gitlab-ce
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedinexedi
  • gitlab-ce
  • Repository
You need to sign in or sign up before continuing.
  • gitlab-ce
  • lib
  • gitlab
  • diff
  • file.rb
Find file BlameHistoryPermalink
  • Zeger-Jan van de Weg's avatar
    Batchload blobs for diff generation · f9565e30
    Zeger-Jan van de Weg authored Nov 03, 2017
    After installing a new gem, batch-loader, a construct can be used to
    queue data to be fetched in bulk. The gem was also introduced in both
    gitlab-org/gitlab-ce!14680 and gitlab-org/gitlab-ce!14846, but those mrs
    are not merged yet.
    
    For the generation of diffs, both the old blob and the new blob need to
    be loaded. This for every file in the diff, too. Now we collect all
    these so we do 1 fetch. Three `.allow_n_plus_1_calls` have been removed,
    which I expect to be valid, but this needs to be confirmed by a full CI
    run.
    
    Possibly closes:
    - https://gitlab.com/gitlab-org/gitlab-ce/issues/37445
    - https://gitlab.com/gitlab-org/gitlab-ce/issues/37599
    - https://gitlab.com/gitlab-org/gitlab-ce/issues/37431
    f9565e30
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7