Commit 4a1dfb2
refactor(workflow-engine): simplify paginated query with early-return on empty count
EF Core strips Include() for aggregate queries, so the count is already
lightweight. Add early return when totalCount is 0 to skip the data query
entirely.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 80d33a2 commit 4a1dfb2
1 file changed
Lines changed: 7 additions & 0 deletions
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
| 558 | + | |
558 | 559 | | |
559 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
560 | 567 | | |
561 | 568 | | |
562 | 569 | | |
| |||
0 commit comments