diff options
| author | Dan Smith <danms@us.ibm.com> | 2013-04-08 16:15:44 -0700 |
|---|---|---|
| committer | Dan Smith <danms@us.ibm.com> | 2013-04-10 13:11:40 -0700 |
| commit | 8de35027ea4a1c0d58915ff0c67fb7f65700cd07 (patch) | |
| tree | 6da7607e50c1fe3df2d1069e56441672defe5784 /bin/stack | |
| parent | e7283948ecdece9ae300af78b6ff0c501610600e (diff) | |
| download | nova-8de35027ea4a1c0d58915ff0c67fb7f65700cd07.tar.gz nova-8de35027ea4a1c0d58915ff0c67fb7f65700cd07.tar.xz nova-8de35027ea4a1c0d58915ff0c67fb7f65700cd07.zip | |
Optimize some of compute/manager's periodic tasks' DB queries
Most of these tasks do not need to fetch instances with a full
complement of metadata items. Make them say "no thanks" to the DB API
to reduce the amount of work that needs to be done. Note some
refactoring was done in the _get_instance_nw_info() method to pull
this information if it ended up being necessary. The cases where this
would happen are error-cleanup scenarios, and thus taking the extra
hit in that case is an overall win for not having to do it all the
time.
Related to bug 1164737
Change-Id: Ic7d6290c0b7edf84cbf8bdc64e29f206619f97e5
Diffstat (limited to 'bin/stack')
0 files changed, 0 insertions, 0 deletions
