Commit cb10eef
committed
api: fix /eval/X/builds requiring 5*len(builds)+1 SQL queries
Prefetch related tables that get fetched as part of serialization to
JSON. Drop the `jobsetevals` field since making it efficient is trickier
(due to not using DBIx native relationships but instead a many_to_many
through a custom table). There is likely a way we could keep it and make
it efficient, but I'm not fluent enough in DBIx to know.1 parent 02e453f commit cb10eef
3 files changed
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | 571 | | |
577 | 572 | | |
578 | 573 | | |
579 | 574 | | |
580 | 575 | | |
581 | 576 | | |
582 | | - | |
583 | | - | |
| 577 | + | |
| 578 | + | |
584 | 579 | | |
585 | 580 | | |
586 | 581 | | |
587 | 582 | | |
588 | 583 | | |
589 | 584 | | |
590 | 585 | | |
591 | | - | |
592 | 586 | | |
593 | 587 | | |
594 | 588 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
| |||
0 commit comments