From da79b4cd921c1cfb12085249707c51cf417ad4fd Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 27 Feb 2012 01:06:59 +0100 Subject: [PATCH] Speed up loading of movielist with lots of releases --- couchpotato/core/plugins/movie/main.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/couchpotato/core/plugins/movie/main.py b/couchpotato/core/plugins/movie/main.py index 2b377bb8..bfdcb376 100644 --- a/couchpotato/core/plugins/movie/main.py +++ b/couchpotato/core/plugins/movie/main.py @@ -104,10 +104,6 @@ class MoviePlugin(Plugin): q = db.query(Movie) \ .join(Movie.library, Library.titles) \ - .options(joinedload_all('releases.status')) \ - .options(joinedload_all('releases.quality')) \ - .options(joinedload_all('releases.files')) \ - .options(joinedload_all('releases.info')) \ .options(joinedload_all('library.titles')) \ .options(joinedload_all('library.files')) \ .options(joinedload_all('status')) \