Commit 775dd33
perf(relationships): fast-exit hooks when collection has no relationships
processQueries and convertQueries both walked the entire query list
before deciding there was nothing to do for a flat-table collection.
Short-circuit when \$relationships is empty so the common case of
plain reads against non-relational schemas pays nothing for the
relationship hook integration.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ef6b8b5 commit 775dd33
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
916 | 916 | | |
917 | 917 | | |
918 | 918 | | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
919 | 925 | | |
920 | 926 | | |
921 | 927 | | |
| |||
999 | 1005 | | |
1000 | 1006 | | |
1001 | 1007 | | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
1002 | 1014 | | |
1003 | 1015 | | |
1004 | 1016 | | |
| |||
0 commit comments