diff options
author | drh <drh@noemail.net> | 2017-06-06 18:20:43 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-06-06 18:20:43 +0000 |
commit | d1417ee1cb250b913db2dd94adc725c2009eae17 (patch) | |
tree | 45d865173d238e138caa862034fc96bc0f7a3e5c /src | |
parent | cf1393df948030eef9a6f2c7bb9060e3d5b17e72 (diff) | |
download | sqlite-d1417ee1cb250b913db2dd94adc725c2009eae17.tar.gz sqlite-d1417ee1cb250b913db2dd94adc725c2009eae17.zip |
Add the SQLITE_DEFAULT_ROWEST compile-time option for changing the estimated
number of rows in tables that lack sqlite_stat1 entries.
FossilOrigin-Name: 234ede26e30f20e6c33002739ed8be35dbfb5c77700bd857ff31072b9b7df347
Diffstat (limited to 'src')
-rw-r--r-- | src/build.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/build.c b/src/build.c index e04406d85..c4bb0300a 100644 --- a/src/build.c +++ b/src/build.c @@ -939,7 +939,11 @@ void sqlite3StartTable( pTable->iPKey = -1; pTable->pSchema = db->aDb[iDb].pSchema; pTable->nTabRef = 1; +#ifdef SQLITE_DEFAULT_ROWEST + pTable->nRowLogEst = sqlite3LogEst(SQLITE_DEFAULT_ROWEST); +#else pTable->nRowLogEst = 200; assert( 200==sqlite3LogEst(1048576) ); +#endif assert( pParse->pNewTable==0 ); pParse->pNewTable = pTable; |