mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-04 04:42:17 +03:00
Improve the accuracy of sqlite3BtreeRowCountEst().
FossilOrigin-Name: e553fb538ec1527457e2927edf9127dccf268a8a3b5918d4fb0d066ad9676094
This commit is contained in:
@ -6235,7 +6235,7 @@ i64 sqlite3BtreeRowCountEst(BtCursor *pCur){
|
||||
|
||||
n = pCur->pPage->nCell;
|
||||
for(i=0; i<pCur->iPage; i++){
|
||||
n *= pCur->apPage[i]->nCell;
|
||||
n *= pCur->apPage[i]->nCell+1;
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
Reference in New Issue
Block a user