Commit ce3740b
perf: scope runs overview query to standalone runs only
The overview aggregation (COUNT, MAX, AVG) was scanning all 2,673 runs
including sweep children. Adding WHERE sweep_id IS NULL limits the scan
to ~8 standalone rows, matching what the list endpoint actually displays.
GET /runs: 0.46s → 0.09s (5x faster)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5b39787 commit ce3740b
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
| 240 | + | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| |||
1153 | 1154 | | |
1154 | 1155 | | |
1155 | 1156 | | |
1156 | | - | |
| 1157 | + | |
1157 | 1158 | | |
1158 | 1159 | | |
1159 | 1160 | | |
| |||
0 commit comments