Commit b9eed6e
committed
feat: Avoid xand composite clause with only one child expression
The extra lazy collection used to wrap its where clause in XAND
expressions for every subsequent "getCriteria()", which resulted
in a couple of layers of AND calculations, usually only having a
single EQUALS comparison.
This change only wraps multipe WHERE expressions into an XOR
cluase and uses the existing clause "as is" if there's only one
condition.1 parent 7a09d4b commit b9eed6e
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
94 | 99 | | |
95 | | - | |
96 | | - | |
97 | | - | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
0 commit comments