Eager load resource_properties_data in resources in the typical
resource-loading scenarios where properties data will be
accessed. Thus, we can save an extra db query per resource when
loading all the resources in a stack, for instance. Fall back to lazy
loading properties data in other scenarios.
Also, the resource object doesn't need to store a copy of its
ResourcePropertiesData object in self.rsrc_prop_data, so don't.
Reviewed: https:/ /review. openstack. org/447843 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=705625cee79 a566ad5f13b0969 a5b2b58f118987
Committed: https:/
Submitter: Jenkins
Branch: master
commit 705625cee79a566 ad5f13b0969a5b2 b58f118987
Author: Crag Wolfe <email address hidden>
Date: Tue Mar 21 01:52:50 2017 -0400
Eager load resource_ properties_ data in resource
Eager load resource_ properties_ data in resources in the typical loading scenarios where properties data will be
resource-
accessed. Thus, we can save an extra db query per resource when
loading all the resources in a stack, for instance. Fall back to lazy
loading properties data in other scenarios.
Also, the resource object doesn't need to store a copy of its pertiesData object in self.rsrc_ prop_data, so don't.
ResourcePro
Change-Id: Ib7684af3fe06f8 18628fd21f1216d e5047872948
Closes-Bug: #1665503