bw_usage_update() most commonly updates rows vs creates rows. New rows
are only created on the 1st bandwidth update for an instance or when
the audit period rolls over. This cuts down DB queries to 1 for the
'update' case.
Added bonus:
Remove unused 'import inspect' in compute manager.
Reviewed: https:/ /review. openstack. org/11267 github. com/openstack/ nova/commit/ 7a500ecc8799914 e45ca8534a15f81 b8823a1d3e
Committed: http://
Submitter: Jenkins
Branch: master
commit 7a500ecc8799914 e45ca8534a15f81 b8823a1d3e
Author: Chris Behrens <email address hidden>
Date: Mon Aug 13 07:33:15 2012 +0000
Improve bw_usage_update() performance
Fixes bug 1036084
bw_ usage_update( ) most commonly updates rows vs creates rows. New rows
are only created on the 1st bandwidth update for an instance or when
the audit period rolls over. This cuts down DB queries to 1 for the
'update' case.
Added bonus:
Remove unused 'import inspect' in compute manager.
Change-Id: Ie5f6c919676046 d817b842138dc9d 17d1115d3c0