requesting lots of packages with a subset of fields still causes changelogs, filelists, requires, etc.. to be loaded, resulting in slow requests
Ticket moved to GitHub: "pulp/pulp_rpm/2312":https://github.com/pulp/pulp_rpm/issues/2312
When we make a request like this:
where some subset of fields is requested, we're still seeing all of the fields being loaded from the database. The result is that the query takes much much longer than it should
Testing on the rhel7 repo, it took about ~100 seconds on my machine to fetch all 32K packages specifying the fields above. If I comment out the filelists, changelogs, provides/requires from the model and serializers, that drops down to ~33 seconds. This is a huge improvement.
Reading this: https://stackoverflow.com/questions/53319787/how-can-i-select-specific-fields-in-django-rest-framework
it looks like its may be possible to exclude certain fields from the query itself fairly easily.
Updated by fao89 over 1 year ago
- Description updated (diff)
- Status changed from NEW to CLOSED - DUPLICATE