Remove redundant DISTINCT from the derivation range INSERT query

This was redundant and slow, so don't do it.
This commit is contained in:
Christopher Baines 2020-03-24 21:37:18 +00:00
parent 994318782a
commit 60df7ecbf9

View file

@ -66,7 +66,7 @@ SELECT DISTINCT
OVER package_version AS last_guix_revision_id
FROM packages
INNER JOIN (
SELECT DISTINCT package_derivations.package_id,
SELECT package_derivations.package_id,
package_derivations.derivation_id,
package_derivations.system,
package_derivations.target,