Right now if you want to get a single image, two queries need to be
executed:
- Get image + associated locations and properties
- Get associated tags for image
Proposed solution combines these two queries into single one which gets
image and all related data - locations, properties and tags. Similar
pattern has been already implemented when querying for list of images.
Reviewed: https:/ /review. openstack. org/171674 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=4734d835138 9f61c575df81240 1eca561c2c0dbb
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4734d8351389f61 c575df812401eca 561c2c0dbb
Author: Kamil Rykowski <email address hidden>
Date: Wed Apr 8 16:29:50 2015 +0200
Reduce DB calls when getting an image
Right now if you want to get a single image, two queries need to be
executed:
- Get image + associated locations and properties
- Get associated tags for image
Proposed solution combines these two queries into single one which gets
image and all related data - locations, properties and tags. Similar
pattern has been already implemented when querying for list of images.
Change-Id: Ic4424bb1eb1769 d8f621ebe111d95 961ecf08479
Closes-Bug: 1434578