mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Further refinements of the index scanning speed logic.
FossilOrigin-Name: e5d9371da92b4cc2c1df177cf40e0ced4d4c7421
This commit is contained in:
@@ -4607,6 +4607,7 @@ int sqlite3Select(
|
||||
for(pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext){
|
||||
if( pIdx->bUnordered==0
|
||||
&& pIdx->iScanRatio<128
|
||||
&& pIdx->pPartIdxWhere==0
|
||||
&& (!pBest || pIdx->iScanRatio<pBest->iScanRatio)
|
||||
){
|
||||
pBest = pIdx;
|
||||
|
||||
Reference in New Issue
Block a user