]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Dont eager load volume type specs on volume list
authorCory Stone <corystone@gmail.com>
Wed, 26 Aug 2015 00:05:36 +0000 (19:05 -0500)
committerCory Stone <corystone@gmail.com>
Wed, 26 Aug 2015 00:05:36 +0000 (19:05 -0500)
commit3539af3d96c3dcf64bb6a06af4be567d15b2a130
treea447a77a6b4914b578e35cb80ce531ce116cd66f
parent25d90467b176463b609834ceb5851920896c6975
Dont eager load volume type specs on volume list

Some drivers need extra specs loaded on create and the session could be
closed by the time they access them. However for a volume list, eager
loading these attributes causes a severe performance penalty.

Move the eager load to the single volume get case.

Change-Id: I6fbf5508684a01a7df7930d4f1b4a47adeefe521
Closes-Bug: 1486289
cinder/db/sqlalchemy/api.py