Comment 2 for bug 1665503

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/447843
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=705625cee79a566ad5f13b0969a5b2b58f118987
Submitter: Jenkins
Branch: master

commit 705625cee79a566ad5f13b0969a5b2b58f118987
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
    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.

    Change-Id: Ib7684af3fe06f818628fd21f1216de5047872948
    Closes-Bug: #1665503