Reviewed: https://review.openstack.org/88457 Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=0114afcf560de862eb8a28e4eb4302702cdbc53e Submitter: Jenkins Branch: master
commit 0114afcf560de862eb8a28e4eb4302702cdbc53e Author: Zane Bitter <email address hidden> Date: Thu Apr 17 18:42:03 2014 -0400
Avoid redundant polling of DB for metadata
Every time self.metadata is read, it triggers a refresh from the database. We were accessing it multiple times in a loop, which is not only wasteful but can get very O(n^2) for a WaitCondition with a high Count.
Partial-Bug: #1306743
Change-Id: I1a82afac6c4ef56dbf87722648034c05abef4010
Reviewed: https:/ /review. openstack. org/88457 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=0114afcf560 de862eb8a28e4eb 4302702cdbc53e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 0114afcf560de86 2eb8a28e4eb4302 702cdbc53e
Author: Zane Bitter <email address hidden>
Date: Thu Apr 17 18:42:03 2014 -0400
Avoid redundant polling of DB for metadata
Every time self.metadata is read, it triggers a refresh from the database.
We were accessing it multiple times in a loop, which is not only wasteful
but can get very O(n^2) for a WaitCondition with a high Count.
Partial-Bug: #1306743
Change-Id: I1a82afac6c4ef5 6dbf87722648034 c05abef4010