Excessive queries for API volumes/detail extensions
Bug #1197612 reported by
Kieran Spear
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
Luis A. Garcia | ||
Havana |
Fix Released
|
High
|
Jay Bryant |
Bug Description
There are three volumes detail extensions that I can see that are using a separate loop over the list of volumes and making a DB call for each one:
api/contrib/
api/contrib/
api/contrib/
The latter two are admin-only by default and are querying for attributes that were present in the original volumes controller query. The first one is getting info from a different table, but should probably be doing it in a single query.
I think Nova solves this issue by caching the objects from the core controller and making them available to extensions, maybe something similar should be done here?
description: | updated |
tags: | added: api |
Changed in cinder: | |
status: | New → Confirmed |
Changed in cinder: | |
assignee: | nobody → Luis A. Garcia (luisg-8) |
tags: | added: havana-backport-potential |
Changed in cinder: | |
status: | In Progress → Fix Committed |
Changed in cinder: | |
milestone: | none → icehouse-1 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
importance: | Undecided → High |
milestone: | icehouse-1 → 2013.2.1 |
milestone: | 2013.2.1 → icehouse-1 |
tags: | removed: havana-backport-potential |
tags: | removed: in-stable-havana |
Changed in cinder: | |
milestone: | icehouse-1 → 2014.1 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/55326
Review: https:/