Project

Profile

Help

Refactor #994

Repository content_unit counts should be calculated using the mongo aggregation framework

Added by bcourt over 5 years ago. Updated over 1 year ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Currently the unit counts on repositories is calculated by atomically adding or subtracting values from the current value. Pulp should let mongo calculate these values for us using an aggregation query:
db.repo_content_units.aggregate({'$match':{'repo_id': '<repo_id>'}}, {'$group': {'_id':'$unit_type_id','sum' :{'$sum':1}}})

With some general testing this query took 0.12 seconds on a repository with 11k total packages (3k erratum and 8k rpm)

History

#1 Updated by bmbouter over 1 year ago

  • Status changed from NEW to CLOSED - WONTFIX

#2 Updated by bmbouter over 1 year ago

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

#3 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF