mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-16 23:02:26 +03:00
Never use WHERE_IN_SEEKSCAN for the 2nd or subsequent IN operator.
FossilOrigin-Name: d0b98619082038ed451912bcdf56568835a8577989a25cacf25591f2366d4f52
This commit is contained in:
@@ -2627,7 +2627,7 @@ static int whereLoopAddBtreeIndex(
|
||||
("IN operator (N=%d M=%d logK=%d nIn=%d rLogSize=%d x=%d) "
|
||||
"prefers indexed lookup\n",
|
||||
saved_nEq, M, logK, nIn, rLogSize, x));
|
||||
}else if( x < -nInMul ){
|
||||
}else if( nInMul<2 ){
|
||||
WHERETRACE(0x40,
|
||||
("IN operator (N=%d M=%d logK=%d nIn=%d rLogSize=%d x=%d"
|
||||
" nInMul=%d) prefers skip-scan\n",
|
||||
|
||||
Reference in New Issue
Block a user