manila/releasenotes/notes/bug-1859785-share-list-speed-6b09e7717624e037.yaml
Sebastian Lohff 54c5667e6b
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>
2020-01-29 11:35:08 +01:00

8 lines
264 B
YAML

---
fixes:
- |
Improved share list speed using lazy='subquery'. The sqlalchemy models of
Share and Share Instance relationships previously had lazy='immediate'.
This resulted in at least three extra queries when we queried for all share
details.