When doing "openstack stack resource list --nested-depth=n", we were
lazy-loading the resources' properties data. This is expensive, especially
when there are a large number of resources. Eager-load the data, as we
always use it to show the resources.
For consistency, always eager-load the resource 'data' (even in
resource_get), because the Resource versioned object accesses it
unconditionally.
Reviewed: https:/ /review. openstack. org/521643 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=dbc852b47a9 a6a1044dd2a554f 16f27681dbe762
Committed: https:/
Submitter: Zuul
Branch: master
commit dbc852b47a9a6a1 044dd2a554f16f2 7681dbe762
Author: Zane Bitter <email address hidden>
Date: Mon Nov 20 13:59:19 2017 -0500
Eager-load properties for nested resource list
When doing "openstack stack resource list --nested-depth=n", we were
lazy-loading the resources' properties data. This is expensive, especially
when there are a large number of resources. Eager-load the data, as we
always use it to show the resources.
For consistency, always eager-load the resource 'data' (even in ally.
resource_get), because the Resource versioned object accesses it
uncondition
Change-Id: Idb871fddf77bf2 4828878c315e19e 200c28841be
Related-Bug: #1665503