From: dan Date: Mon, 16 Mar 2015 16:28:43 +0000 (+0000) Subject: When estimating the number of rows visited by a range scan for which the keys consist... X-Git-Tag: version-3.8.9~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f881b8c8d3bd992e196919e10b6db4f1a47993f;p=thirdparty%2Fsqlite.git When estimating the number of rows visited by a range scan for which the keys consist of more than one field, consider prefixes of stat4 samples as well as the full samples. This generates more accurate estimates. FossilOrigin-Name: 3e0590dee0e68cc1599858757c650a7378026170 --- 5f881b8c8d3bd992e196919e10b6db4f1a47993f diff --cc manifest index 90bbcb29fd,3b2c011b8e..e7e9fb89d8 --- a/manifest +++ b/manifest @@@ -1,5 -1,5 +1,5 @@@ - C Use\s#ifdef\sto\somit\scode\sthat\sis\sonly\sused\sfor\sSTAT3\sand\sSTAT4. - D 2015-03-16T13:48:23.259 -C Another\stest\scase\sfor\sthe\splanner\schange\son\sthis\sbranch. -D 2015-03-16T09:21:30.738 ++C When\sestimating\sthe\snumber\sof\srows\svisited\sby\sa\srange\sscan\sfor\swhich\sthe\skeys\sconsist\sof\smore\sthan\sone\sfield,\sconsider\sprefixes\sof\sstat4\ssamples\sas\swell\sas\sthe\sfull\ssamples.\sThis\sgenerates\smore\saccurate\sestimates. ++D 2015-03-16T16:28:43.573 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.in 88a3e6261286db378fdffa1124cad11b3c05f5bb F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 @@@ -1244,7 -1244,7 +1244,7 @@@ F tool/vdbe_profile.tcl 67746953071a9f8 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4 F tool/warnings.sh 0abfd78ceb09b7f7c27c688c8e3fe93268a13b32 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f - P 1c2166cb2a387a0856f41b399c3648bf8c5fce73 - R e7f2404f34b97aa8b45ff522e4adb3b6 - U drh - Z 2ec6c684a2b78379b1dfd597c8ec878e -P e1caf93c9ad0ee15d42030af95619f212d3fcf9d -R de6873e674f8f1bad7ecb0349d34590a ++P f2c9c5b57b7739daafc44e8ec36d4a2beacd5f17 f2207a0691ed361061719f4dacf021a677a9d892 ++R 91b4618acc4046613febfb03ba644299 + U dan -Z 76e12c27217f9a3f485e4cb06238c66e ++Z a47ebefe49a8b31d8182fc2d2ef4fe70 diff --cc manifest.uuid index f8a6086b6f,e21139d81b..7834d3d08a --- a/manifest.uuid +++ b/manifest.uuid @@@ -1,1 -1,1 +1,1 @@@ - f2c9c5b57b7739daafc44e8ec36d4a2beacd5f17 -f2207a0691ed361061719f4dacf021a677a9d892 ++3e0590dee0e68cc1599858757c650a7378026170