Skip to content

Commit

Permalink
Significant perf improvements according to EXPLAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Dec 4, 2023
1 parent 4dd79f5 commit c61e26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/lib/types/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default class Run extends Generic {
runs.github,
runs.closed,
ARRAY_AGG(job.status) AS status,
COUNT(job.*) AS jobs
ARRAY_LENGTH(ARRAY_AGG(job.status), 0) AS jobs
FROM
runs
LEFT JOIN job
Expand Down

0 comments on commit c61e26a

Please sign in to comment.