Reviewed: https://review.openstack.org/95940 Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=368b6d39be6006c3aef429d47bc644713255b31e Submitter: Jenkins Branch: stable/icehouse
commit 368b6d39be6006c3aef429d47bc644713255b31e 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/95940 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=368b6d39be6 006c3aef429d47b c644713255b31e
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit 368b6d39be6006c 3aef429d47bc644 713255b31e
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