Improve "neutron_lib.db.model_query.get_collection_count" method
Bug #1942863 reported by
Rodolfo Alonso
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Rodolfo Alonso |
Bug Description
Same as in [1], the object count query should use a simpler SQL query instead of retrieving the full OVO objects. This goal of this bug is to provide a kwarg to pass a model field. The SQL query will retrieve only this field form the table register, avoiding most of the joined and nested queries.
Changed in neutron: | |
assignee: | nobody → Rodolfo Alonso (rodolfo-alonso-hernandez) |
importance: | Undecided → Low |
Changed in neutron: | |
status: | New → In Progress |
To post a comment you must log in.
Related patch: https:/ /review. opendev. org/c/openstack /neutron- lib/+/807686