Actions
Task #6742
closedAdd indexes to the models for better performance
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 94
Quarter:
Q2-2021
Description
for example for pulp2lazycatalog we'd have:
indexes = [
-
models.Index(fields=['pulp2_content_type_id']),
-
models.Index(fields=['pulp2_id']),
-
models.Index(fields=['pulp2_last_updated'])
Actions
Add missing indices
It should potentially improve performance of some queries a bit. No benchmarking is done, just those fields are used in various queries.
closes #6742 https://pulp.plan.io/issues/6742