When we show a stack including the outputs, we calculate all of the
resource attributes that are referenced anywhere in the stack. In
convergence, these are either already cached (and therefore fast) or need
to be cached (and therefore the initial slowness will pay off in future).
This isn't the case in the legacy path though, since we are not doing
caching of attributes in the database in that path. So this is
unnecessarily calculating all of the referenced attribute values, which are
potentially very slow to get.
For legacy stacks, only calculate the attribute values needed to show the
outputs.
Reviewed: https:/ /review. openstack. org/507206 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=49d833f9aca 351102bb1c91402 31b809d8b4c519
Committed: https:/
Submitter: Jenkins
Branch: master
commit 49d833f9aca3511 02bb1c9140231b8 09d8b4c519
Author: Zane Bitter <email address hidden>
Date: Mon Sep 25 10:53:38 2017 -0400
Speed up show-stack with outputs in legacy path
When we show a stack including the outputs, we calculate all of the
resource attributes that are referenced anywhere in the stack. In
convergence, these are either already cached (and therefore fast) or need
to be cached (and therefore the initial slowness will pay off in future).
This isn't the case in the legacy path though, since we are not doing
caching of attributes in the database in that path. So this is
unnecessarily calculating all of the referenced attribute values, which are
potentially very slow to get.
For legacy stacks, only calculate the attribute values needed to show the
outputs.
Change-Id: I35800c7f87b58d af05cbabd05bcbc d75d0c0fadb
Partial-Bug: #1719333