For advisories with lot of images, we end up asking for the same ODCS pulp compose again and again. Instead, we can just reuse the old compose.
+1
Suggestion: Why not just save it to cache just after call to self._prepare_pulp_repo?
self._prepare_pulp_repo
Can this db_compose be cached as well with associated pulp compose together? It can save cost of a few SELECT queries.
Looks good for me generally. Two minor suggestions.
1 new commit added
Cache the Compose database object instead of ODCS compose dict.
@cqi: I've updated PR to address your comments, please check :).
Looks good for me. :thumbsup:
Commit a755b24b fixes this pull-request
Pull-Request has been merged by jkaluza
For advisories with lot of images, we end up asking for the same ODCS pulp compose again and again. Instead, we can just reuse the old compose.