From: dan Date: Wed, 30 Apr 2014 15:22:25 +0000 (+0000) Subject: Modify the way the costs of various query plans are estimated. If the user supplies... X-Git-Tag: version-3.8.5~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4243e27f22c3ec6fffc1e87d5b6b74e04e2cc1c7;p=thirdparty%2Fsqlite.git Modify the way the costs of various query plans are estimated. If the user supplies a likelihood() value (or equivalent) on an indexed WHERE constraint, use it to estimate the number of index rows visited. FossilOrigin-Name: 90e36676476e8db00658772e6c938242f766d306 --- 4243e27f22c3ec6fffc1e87d5b6b74e04e2cc1c7 diff --cc manifest index 41c2bd4ae0,35f78b46c2..c2ff19fbfe --- a/manifest +++ b/manifest @@@ -1,5 -1,5 +1,5 @@@ - C Add\sthe\ssqlite3_rtree_query_callback()\sAPI\sto\sthe\sRTree\svirtual\stable.\n(Cherrypick\sfrom\sthe\ssessions\sbranch.) - D 2014-04-28T17:56:19.891 -C Add\stext\sto\sthe\sheader\scomment\sof\swhereLoopAddBtree()\sdescribing\show\sthe\scosts\sof\svarious\sb-tree\sloops\sare\sestimated. -D 2014-04-30T15:00:16.197 ++C Modify\sthe\sway\sthe\scosts\sof\svarious\squery\splans\sare\sestimated.\sIf\sthe\suser\ssupplies\sa\slikelihood()\svalue\s(or\sequivalent)\son\san\sindexed\sWHERE\sconstraint,\suse\sit\sto\sestimate\sthe\snumber\sof\sindex\srows\svisited. ++D 2014-04-30T15:22:25.359 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.in 2ef13430cd359f7b361bb863504e227b25cc7f81 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 @@@ -1165,8 -1166,7 +1166,7 @@@ F tool/vdbe_profile.tcl 67746953071a9f8 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4 F tool/warnings.sh d1a6de74685f360ab718efda6265994b99bbea01 F tool/win/sqlite.vsix 030f3eeaf2cb811a3692ab9c14d021a75ce41fff - P f5a263658187250044afc1a74000e6f6962733ca - Q +3dca2809352c6c6d56db74447a814f77011c6220 - R 70a04a84bf76743284b12f147604df6e - U drh - Z 8441eee0dd2b010346629b18a46aad71 -P 9b975bf33cd8fc28c64183a9642bf9fb436a4746 ++P af2cbe64adab5f9e3b0f3da00d06428088589d7f 05e6e16cb28c9ffb4596bd2ef81f687c5403ecbb + R 20e49e26218874ddfe5fb9438df8f580 + U dan -Z c1e32968c738a6da213a45755f91539c ++Z 75da520dd73c7e9f7e5ee96ec52c5c59 diff --cc manifest.uuid index fbb0a3e2f9,6ee1deefef..437f1a2753 --- a/manifest.uuid +++ b/manifest.uuid @@@ -1,1 -1,1 +1,1 @@@ - af2cbe64adab5f9e3b0f3da00d06428088589d7f -05e6e16cb28c9ffb4596bd2ef81f687c5403ecbb ++90e36676476e8db00658772e6c938242f766d306