When handling the command "openstack stack event list --nested-depth=n", we
obtain the list of nested stacks by querying the database for all resources
that share the root stack ID. However, since all we're getting is the stack
IDs, there's no need to query all of the fields and construct a versioned
object for each resource. Just get the set of stack IDs.
Reviewed: https:/ /review. openstack. org/521651 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=23e06f66b9e 0ccb667c2431876 4da72aa82d4e18
Committed: https:/
Submitter: Zuul
Branch: master
commit 23e06f66b9e0ccb 667c24318764da7 2aa82d4e18
Author: Zane Bitter <email address hidden>
Date: Mon Nov 20 15:06:13 2017 -0500
Speed up event listing with nested stacks
When handling the command "openstack stack event list --nested-depth=n", we
obtain the list of nested stacks by querying the database for all resources
that share the root stack ID. However, since all we're getting is the stack
IDs, there's no need to query all of the fields and construct a versioned
object for each resource. Just get the set of stack IDs.
Change-Id: I12155433e2ac1a f919aa4b5e780fb 965cd5885d8
Related-Bug: #1588561