Use the package_derivations system id in a query

Rather than the derivations system id, as this helps PostgreSQL run the query
faster.
This commit is contained in:
Christopher Baines 2023-05-04 08:32:43 +01:00
parent 639c6ff183
commit 3734a85650

View file

@ -146,7 +146,7 @@ ORDER BY status"))
`(("guix_revisions.commit = $" . ,revision-commit))
'())
,@(if system
`(("derivations.system_id = $" .
`(("package_derivations.system_id = $" .
,(number->string (system->system-id conn system))))
'())
,@(if target