Timing is on.
lpmain_staging=> SELECT COUNT(*) FROM (SELECT DISTINCT DistributionSourcePackageCache.archive, DistributionSourcePackageCache.binpkgdescriptions, DistributionSourcePackageCache.binpkgnames, DistributionSourcePackageCache.binpkgsummaries, DistributionSourcePackageCache.changelog, DistributionSourcePackageCache.distribution, DistributionSourcePackageCache.id, DistributionSourcePackageCache.name, DistributionSourcePackageCache.sourcepackagename FROM BinaryPackageBuild, BinaryPackageName, BinaryPackageRelease, DistributionSourcePackageCache, DistroArchSeries, DistroSeries, SourcePackageName, SourcePackageRelease WHERE DistroSeries.distribution = 1 AND DistroSeries.releasestatus != 6 AND BinaryPackageRelease.binarypackagename = BinaryPackageName.id AND DistroArchSeries.distroseries = DistroSeries.id AND BinaryPackageBuild.distro_arch_series = DistroArchSeries.id AND BinaryPackageRelease.build = BinaryPackageBuild.id AND BinaryPackageBuild.source_package_release = SourcePackageRelease.id AND SourcePackageRelease.sourcepackagename = SourcePackageName.id AND DistributionSourcePackageCache.sourcepackagename = SourcePackageName.id AND DistributionSourcePackageCache.archive IN (1, 534) AND BinaryPackageName.name = 'mplayer') AS "_tmp";
count
-------
1
(1 row)
Timing is on. rcePackageCache .archive, DistributionSou rcePackageCache .binpkgdescript ions, DistributionSou rcePackageCache .binpkgnames, DistributionSou rcePackageCache .binpkgsummarie s, DistributionSou rcePackageCache .changelog, DistributionSou rcePackageCache .distribution, DistributionSou rcePackageCache .id, DistributionSou rcePackageCache .name, DistributionSou rcePackageCache .sourcepackagen ame FROM BinaryPackageBuild, BinaryPackageName, BinaryPackageRe lease, DistributionSou rcePackageCache , DistroArchSeries, DistroSeries, SourcePackageName, SourcePackageRe lease WHERE DistroSeries. distribution = 1 AND DistroSeries. releasestatus != 6 AND BinaryPackageRe lease.binarypac kagename = BinaryPackageNa me.id AND DistroArchSerie s.distroseries = DistroSeries.id AND BinaryPackageBu ild.distro_ arch_series = DistroArchSeries.id AND BinaryPackageRe lease.build = BinaryPackageBu ild.id AND BinaryPackageBu ild.source_ package_ release = SourcePackageRe lease.id AND SourcePackageRe lease.sourcepac kagename = SourcePackageNa me.id AND DistributionSou rcePackageCache .sourcepackagen ame = SourcePackageNa me.id AND DistributionSou rcePackageCache .archive IN (1, 534) AND BinaryPackageNa me.name = 'mplayer') AS "_tmp";
lpmain_staging=> SELECT COUNT(*) FROM (SELECT DISTINCT DistributionSou
count
-------
1
(1 row)
Time: 23046.859 ms