summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorChris Behrens <cbehrens@codestud.com>2012-08-13 07:33:15 +0000
committerChris Behrens <cbehrens@codestud.com>2012-08-13 16:59:16 +0000
commit7a500ecc8799914e45ca8534a15f81b8823a1d3e (patch)
treee20cc8b3a6b5ca11c5036940ff2d572bbeaa1058 /nova/openstack
parent7c9bb06622c72e5ec823f15a98cd9ea93d094f2a (diff)
downloadnova-7a500ecc8799914e45ca8534a15f81b8823a1d3e.tar.gz
nova-7a500ecc8799914e45ca8534a15f81b8823a1d3e.tar.xz
nova-7a500ecc8799914e45ca8534a15f81b8823a1d3e.zip
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: Ie5f6c919676046d817b842138dc9d17d1115d3c0
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions