Stack.root_stack_id() is inefficient

Bug #1616557 reported by Crag Wolfe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
In Progress
Undecided
Crag Wolfe

Bug Description

For deep nested stacks especially, Stack.root_stack_id() is inefficient because n-1 db queries are executed to determine the root_id for a stack with depth n. Fortunately, this method is not called too frequently and resources already store their root_stack_id. But, this method is called for every resource created within a nested stack.

Crag Wolfe (cwolfe)
Changed in heat:
assignee: nobody → Crag Wolfe (cwolfe)
status: New → In Progress
Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.