1
0
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:
drh
2025-06-19 20:00:37 +00:00
parent 397b82cf0f
commit 37794b4ad0
3 changed files with 8 additions and 9 deletions

View File

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