manila/manila/db/sqlalchemy
Sebastian Lohff dd35b08de1 Improve share list speed using lazy='subquery'
lazy='immediate' leads to each relationship being collected when
it is accessed. This results in at least three extra queries when
we query for all share details. lazy='subquery' collects all data
when the query is executed. In this commit we only changed code for
improving the share list with details ("manila list") speed.

Change-Id: Ia61b108ece0817069737980a614cc6c15c1a3507
Closes-Bug: #1859785
Co-authored-by: Johannes Kulik <johannes.kulik@sap.com>
Co-authored-by: Maurice Escher <maurice.escher@sap.com>
(cherry picked from commit 54c5667e6b)
(cherry picked from commit f01e485578)
2020-01-29 22:18:26 +00:00
..
__init__.py Address H104 File contains nothing but comments 2014-07-14 10:19:15 +02:00
api.py Fix pagination does not speed up queries bug 2019-09-26 17:23:09 +00:00
models.py Improve share list speed using lazy='subquery' 2020-01-29 22:18:26 +00:00
query.py Use soft_delete() methods in DB api 2015-07-13 15:28:47 +03:00