Improve performance by removing unnecessary group by fields

This commit is contained in:
Jake Moshenko 2015-12-22 11:35:49 -05:00
parent 5ac7369bf5
commit 9c1a2e7e1b
2 changed files with 4 additions and 4 deletions

View file

@ -48,8 +48,8 @@ def garbage_collect_storage(storage_id_whitelist):
.switch(ImageStoragePlacement)
.join(ImageStorage),
storage_id_whitelist,
(ImageStorage, ImageStoragePlacement,
ImageStorageLocation)))
(ImageStorage.id, ImageStoragePlacement.id,
ImageStorageLocation.id)))
paths_to_remove = placements_query_to_paths_set(placements_to_remove)