Closed albertkol closed 2 years ago
subqueryload
load_only
package_statuses
limit
Fixes #https://github.com/canonical-web-and-design/commercial-squad/issues/629
@albertkol can you merge it?
Done
subqueryload
,load_only
to reduce the number of queries we make to the database.package_statuses
from the CVE model. It was doing a bit too many loops.limit
property of the endpoints - prevents people from attempting to fetch everything at once, blowing up the memory.QA
Issue / Card
Fixes #https://github.com/canonical-web-and-design/commercial-squad/issues/629