diff options
author | drh <drh@noemail.net> | 2014-10-22 15:27:05 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-10-22 15:27:05 +0000 |
commit | 9f07cf7b2e43548f60bd7497dafba30856df3531 (patch) | |
tree | e95a44e53867012ea9474ae74c87195557a9119d /src/sqliteInt.h | |
parent | 442c5cd3cfc67d3e10aa64d9f180ef94fb3597cf (diff) | |
download | sqlite-9f07cf7b2e43548f60bd7497dafba30856df3531.tar.gz sqlite-9f07cf7b2e43548f60bd7497dafba30856df3531.zip |
Take steps to avoid misestimating range query costs based on STAT4 data
due to the roundoff error of converting from integers to LogEst and back
to integers.
FossilOrigin-Name: 3c933bf95f291f7957580d823dce92c981375a5c
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index cba89b03e..5409f7086 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -1801,7 +1801,8 @@ struct Index { int nSampleCol; /* Size of IndexSample.anEq[] and so on */ tRowcnt *aAvgEq; /* Average nEq values for keys not in aSample */ IndexSample *aSample; /* Samples of the left-most key */ - tRowcnt *aiRowEst; /* Non-logarithmic stat1 data for this table */ + tRowcnt *aiRowEst; /* Non-logarithmic stat1 data for this index */ + tRowcnt nRowEst0; /* Non-logarithmic number of rows in the index */ #endif }; |