Repository navigation
[PR #541/cdfe60de backport][0.34] [PULP-2474] Optimize Maven repository metrics counts - #542
Merged
dkliban merged 1 commit intoOct 20, 2026
Conversation
dkliban
force-pushed
the
patchback/backports/0.34/cdfe60dee5cc2a112646d495b7660796dbc7fc6d/pr-541
branch
from
October 20, 2026 09:10
d8292d7 to
9cdd3c3
Compare
dkliban
deleted the
patchback/backports/0.34/cdfe60dee5cc2a112646d495b7660796dbc7fc6d/pr-541
branch
October 20, 2026 09:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a backport of PR #541 as merged into main (cdfe60d).
The repository metrics endpoint runs three separate COUNT(DISTINCT) queries over MavenPackage content. Combine them into one Django aggregate query using PostgreSQL row-valued DISTINCT expressions.
This preserves the API and exact results while reducing production-scale GABI latency from about 9.4–9.8s to 3.6–3.8s under three concurrent requests.
Tests: