Optimize dashboard query

This commit is contained in:
Ruud
2013-08-14 16:55:57 +02:00
parent 8917d7c16c
commit 250f07ffa7
+1 -1
View File
@@ -46,7 +46,7 @@ class Dashboard(Plugin):
q = db.query(Movie).join((subq, subq.c.id == Movie.id)) \ q = db.query(Movie).join((subq, subq.c.id == Movie.id)) \
.options(joinedload_all('releases')) \ .options(joinedload_all('releases')) \
.options(joinedload_all('profile.types')) \ .options(joinedload_all('profile')) \
.options(joinedload_all('library.titles')) \ .options(joinedload_all('library.titles')) \
.options(joinedload_all('library.files')) \ .options(joinedload_all('library.files')) \
.options(joinedload_all('status')) \ .options(joinedload_all('status')) \