commit 8921a470ee797cd75def387ce184ee0ffaae6517
Author: Matt Riedemann <email address hidden>
Date: Fri May 3 15:40:30 2019 -0400
Avoid unnecessary joins in delete_resource_provider
If cascade=True, we're getting all of the instances on the
compute node just to use the uuid, which will by default
join on the info_cache and security_groups for the instances.
This is a simple optimization to avoid those unnecessary joins.
A TODO is left to further optimize this with a new InstanceList
query method to just get the instance uuids on a given host/node
combo, but that requires an RPC change which we can't backport.
Reviewed: https:/ /review. opendev. org/657021 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8921a470ee7 97cd75def387ce1 84ee0ffaae6517
Committed: https:/
Submitter: Zuul
Branch: master
commit 8921a470ee797cd 75def387ce184ee 0ffaae6517
Author: Matt Riedemann <email address hidden>
Date: Fri May 3 15:40:30 2019 -0400
Avoid unnecessary joins in delete_ resource_ provider
If cascade=True, we're getting all of the instances on the
compute node just to use the uuid, which will by default
join on the info_cache and security_groups for the instances.
This is a simple optimization to avoid those unnecessary joins.
A TODO is left to further optimize this with a new InstanceList
query method to just get the instance uuids on a given host/node
combo, but that requires an RPC change which we can't backport.
Change-Id: Ie121210456a240 c257979d3269db1 15ddae2d23b
Related-Bug: #1811726
Related-Bug: #1756179