diff options
author | drh <> | 2024-04-07 10:30:29 +0000 |
---|---|---|
committer | drh <> | 2024-04-07 10:30:29 +0000 |
commit | 660322f96f2947b5b8cdefafed564075e026d5bc (patch) | |
tree | 0eadd615a8f68ec8e5c0084d797594d53c479a79 /src/wherecode.c | |
parent | 6951c4977976ddca0b9e4ce75e79fc69c44dfd77 (diff) | |
parent | 05c6d13027db5e2f8dd6311fd6520e1ca0e7bdb9 (diff) | |
download | sqlite-660322f96f2947b5b8cdefafed564075e026d5bc.tar.gz sqlite-660322f96f2947b5b8cdefafed564075e026d5bc.zip |
Merge trunk enhancements into the pushdown-subquery branch.
FossilOrigin-Name: 27865e316f8dfbf4c20290cf1be3024d7518fec46655e34f3fc435e15346c63e
Diffstat (limited to 'src/wherecode.c')
-rw-r--r-- | src/wherecode.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wherecode.c b/src/wherecode.c index 47ce36ce3..1f9c84f00 100644 --- a/src/wherecode.c +++ b/src/wherecode.c @@ -2474,6 +2474,12 @@ Bitmask sqlite3WhereCodeOneLoopStart( ** iLoop==3: Code all remaining expressions. ** ** An effort is made to skip unnecessary iterations of the loop. + ** + ** This optimization of causing simple query restrictions to occur before + ** more complex one is call the "push-down" optimization in MySQL. Here + ** in SQLite, the name is "MySQL push-down", since there is also another + ** totally unrelated optimization called "WHERE-clause push-down". + ** Sometimes the qualifier is omitted, resulting in an ambiguity, so beware. */ iLoop = (pIdx ? 1 : 2); do{ |