Index Cond: (sourcepackagerelease.id = binarypackagebuild.source_package_release) -> Index Scan using sourcepackagename_pkey on sourcepackagename (cost=0.00..0.27 rows=1 width=4) (actual time=0.007..0.010 rows=1 loops=1917) Index Cond: (sourcepackagename.id = sourcepackagerelease.sourcepackagename) -> Index Scan using distributionsourcepackagecache__distribution__sourcepackagename on distributionsourcepackagecache (cost=0.00..612.79 rows=1 width=830) (actual time=1.340..3.815 rows=1 loops=1917) Index Cond: (distributionsourcepackagecache.sourcepackagename = sourcepackagerelease.sourcepackagename) Filter: (distributionsourcepackagecache.archive = ANY ('{1,534}'::integer[]))
Total runtime: 8106.731 ms
(thats with disk IO, its 8-8.5seconds when repeated.
plan for it:
-------
Aggregate (cost=1261.
-> Unique (cost=1261.
-> Sort (cost=1261.
Sort Key: distributionsou
Sort Method: quicksort Memory: 761kB
-> Nested Loop (cost=0.00..1261.84 rows=2 width=830) (actual time=1.
Total runtime: 8106.731 ms