1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Completely remove the iScanRatio field. The PRAGMA index_list(TABLE) command

shows the estimated row size in the forth column.  It also generates a row
for the table with an index name of NULL.  The query planner still does not
take row size estimates into account - that is the next step.

FossilOrigin-Name: 8b4aa0c7a2122bbe60432edadf27e490e31ec987
This commit is contained in:
drh
2013-10-05 19:18:00 +00:00
parent 0af62b015a
commit e13e9f54b0
8 changed files with 50 additions and 64 deletions

View File

@@ -1277,17 +1277,10 @@ static void decodeIntArray(
if( pIndex ){
if( strcmp(z, "unordered")==0 ){
pIndex->bUnordered = 1;
}else if( sqlite3_strglob("r=[0-9]*", z)==0 ){
}else if( sqlite3_strglob("sz=[0-9]*", z)==0 ){
int v32 = 0;
sqlite3GetInt32(z+2, &v32);
if( v32>=200 ){
v32 = 255;
}else if( v32<=0 ){
v32 = 1;
}else{
v32 = (128*v32)/100;
}
pIndex->iScanRatio = (u8)v32;
sqlite3GetInt32(z+3, &v32);
pIndex->szIdxRow = sqlite3LogEst(v32);
}
}
}