1
0
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:
drh
2013-10-04 18:29:25 +00:00
parent 165674d8db
commit d3037a4123
5 changed files with 42 additions and 41 deletions

View File

@@ -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;