diff options
| author | Boris Pavlovic <boris@pavlovic.me> | 2013-04-19 09:41:07 +0400 |
|---|---|---|
| committer | Boris Pavlovic <boris@pavlovic.me> | 2013-04-30 09:44:04 +0400 |
| commit | 48621685389a491d0519faf8fe52dc682e020c67 (patch) | |
| tree | 9dc9bca6b3f956587a9a216a3ed00f6e265f1a46 /nova/openstack | |
| parent | feb1b03f9c2ce222273a0f03b78d66d5525be3ae (diff) | |
| download | nova-48621685389a491d0519faf8fe52dc682e020c67.tar.gz nova-48621685389a491d0519faf8fe52dc682e020c67.tar.xz nova-48621685389a491d0519faf8fe52dc682e020c67.zip | |
Performance optimization for contrib.flavorextraspecs
In method FlavorExtraSpecsController.index():
This method calls FlavorExtraSpecsController._get_extra_specs()
that returns all extra_specs that has flavor.
In db.api layer we are returning already extra_specs as plain object,
so there is no reason to make one more time copy of extra_specs.
In method FlavorExtraSpecsController.show():
This method should return extra_spec that corresponds to specified
key and flavor_id.
Was:
Get all extra_specs by flavor_id and filter by key locally
Now:
Filter by flavor_id and key in db.
Change-Id: I4c39f5f56511e67e37482cda1b4e9771ee9c7d7d
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions
