Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !6463

Merged
Created 11 years ago by Administrator@rootOwner

Add index_merge_request_diffs_on_merge_request_id

  • Overview 1
  • Commits 1
  • Changes 2

Created by: gussan

Improve MergeRequestDiff performance

Request to merge github/fork/gussan/add_index_merge_request_diffs_on_merge_request_id into master
  • Download as
  • Email patches

  • Plain diff

Checking approval status

Merged by (Jun 20, 2025 11:18am UTC)

The changes were merged into master with 93bc67ab

The source branch has been deleted


  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: mjdetullio

    @gussan Are the benefits of this change seen on just the MR comments/diff page or also on the MR list page?

    @randx I just upgraded from 6.4 -> 6.5 -> 6.6 and I'm seeing a noticeable performance hit on the MR list page. I had one project with 17 open MRs and when I loaded the MR list page it took ActiveRecord 20 seconds. Another project with 5 MRs open takes 3.2 seconds. Switching the filter from Open to All exceeds my 30 second Unicorn timeout. I believe this page is trying to load a significant amount of information from the merge_request_diffs table.

    By Administrator on 2014-03-11T18:11:30 (imported from GitLab project)

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Milestone
No milestone
None
None
Time tracking
No estimate or time spent
0
Labels
None
Assign labels
  • No matching results
  • Manage project labels
Lock merge request
Unlocked
1
1 participant
user avatar
Reference: gpt/large_projects/gitlabhq1!6463
Source branch: github/fork/gussan/add_index_merge_request_diffs_on_merge_request_id

    0 pending comments

Menu

Projects Groups Snippets
Help