Skip to content
Snippets Groups Projects

Used cached value of project count to reduce DB load

Merged Stan Hu requested to merge use-cached-project-count into master
2 unresolved threads

Requires gitlab-org/gitlab-ce!5746

Possible fix for gitlab-com/infrastructure#303 (closed)

Merge request reports

Pipeline #3906854 passed

Pipeline passed for 563495a5 on use-cached-project-count

Merged by avatar (Jan 21, 2025 1:41pm UTC)

Loading

Pipeline #3907968 passed

Pipeline passed for fac427db on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
131 131 %h4 Projects
132 132 .data
133 133 = link_to admin_namespaces_projects_path do
134 %h1= number_with_delimiter(Project.count)
134 %h1= number_with_delimiter(Project.cached_count)
  • Added 1 commit:

    • 563495a5 - Add Project.cached_count method (CE up-port)
  • 12 12 end
    13 13
    14 14 def self.repositories_count
    15 Project.count
    15 Project.cached_count
  • mentioned in commit fac427db

  • username-removed-128633 Status changed to merged

    Status changed to merged

  • Picked into 8-10-stable-ee, will go into 8.10.5.

  • username-removed-128633 Removed ~149424 label

    Removed ~149424 label

  • mentioned in commit f5f7ab59

  • Please register or sign in to reply
    Loading