Join to builds via jobset_id when easy

This commit is contained in:
Graham Christensen
2021-06-01 11:16:47 -04:00
parent 5b6b8261fc
commit 508d99d611
4 changed files with 5 additions and 9 deletions

View File

@ -426,7 +426,7 @@ sub checkBuild {
# semantically unnecessary (because they're implied by
# the eval), but they give a factor 1000 speedup on
# the Nixpkgs jobset with PostgreSQL.
{ project => $jobset->get_column('project'), jobset => $jobset->name, job => $jobName,
{ jobset_id => $jobset->get_column('id'), job => $jobName,
name => $firstOutputName, path => $firstOutputPath },
{ rows => 1, columns => ['id'], join => ['buildoutputs'] });
if (defined $prevBuild) {