summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorChris Behrens <cbehrens@codestud.com>2012-06-25 21:14:11 +0000
committerChris Behrens <cbehrens@codestud.com>2012-06-26 01:51:46 +0000
commit936140de2c42b8e1b4cf1edde1e6fb25bcd75c59 (patch)
treedc1ee9ae9d94ea10eb1cd37660fcfd2b52391931 /nova/openstack
parentca1f1d39b8ee85f55d5b656f7db946f855be5cb2 (diff)
Re-factor instance DB creation
This patch speeds up the DB creation process considerably in deployments with a considerable amount of instances. It also cleans up a lot of the code which ends up creating the instance DB record. The biggest improvement in this patch is removing unnecessary joins in security_groups DB calls. This also reduces the number of DB calls needed to create an instance DB record in general. Side effect of this patch is the default 'display_name' for an instance when it (or hostname) is not specified is now 'Server <uuid>' vs 'Server <id>'. Because of the use of 'id', it required creating the DB record, then updating the record later after we new the 'id'. This is gone. Fixes bug 1017722 Change-Id: I9b7d48644a7abe075545c2c11399351b6a37939c
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions