]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Retrieve volume image metadata using single query
authorLuis A. Garcia <luis@linux.vnet.ibm.com>
Tue, 5 Nov 2013 02:22:30 +0000 (02:22 +0000)
committerLuis A. Garcia <luis@linux.vnet.ibm.com>
Mon, 11 Nov 2013 18:51:44 +0000 (18:51 +0000)
commit56e5805203a14acad78dc806247b5f0f4a22c9f8
treeb77ba165bfa056fea2c5e71039a9bfd6abc7223a
parentbb2daca2864a5607635a3aa37f3874fdda22797b
Retrieve volume image metadata using single query

The image metadata REST API contributions are making an individual db
call for each of the available volumes. When the number of volumes is
large the volume details call can take several minutes.

This patch changes the image metadata API contributions to take
advantage of the new db query to retrieve metadata in bulk.

Change-Id: I9a35438c1f38ea8a3d8f5b687ae58ba1f3f78121
Partial-Bug: #1197612
cinder/api/contrib/volume_image_metadata.py
cinder/tests/api/contrib/test_volume_image_metadata.py