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:
parent
639c6ff183
commit
3734a85650
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ ORDER BY status"))
|
||||||
`(("guix_revisions.commit = $" . ,revision-commit))
|
`(("guix_revisions.commit = $" . ,revision-commit))
|
||||||
'())
|
'())
|
||||||
,@(if system
|
,@(if system
|
||||||
`(("derivations.system_id = $" .
|
`(("package_derivations.system_id = $" .
|
||||||
,(number->string (system->system-id conn system))))
|
,(number->string (system->system-id conn system))))
|
||||||
'())
|
'())
|
||||||
,@(if target
|
,@(if target
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue