Comment 41 for bug 1306743

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (stable/icehouse)

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