From: drh Date: Fri, 9 Nov 2012 18:32:05 +0000 (+0000) Subject: Take into account the cost of inner loops when selecting which table of a join X-Git-Tag: version-3.7.15~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c0a8ee57c5ab9cd2c4547a669ad7f7b84791e20;p=thirdparty%2Fsqlite.git Take into account the cost of inner loops when selecting which table of a join to use for the next outer loop. FossilOrigin-Name: 3f87f4593b631819609248c8f1370c1e19465eb0 --- 9c0a8ee57c5ab9cd2c4547a669ad7f7b84791e20 diff --cc manifest index 46d197a9d4,66c67bce3f..be8991af1e --- a/manifest +++ b/manifest @@@ -1,5 -1,5 +1,5 @@@ - C Adjust\sthe\sSQLITE_DBSTATUS_STMT_USED\scalculation\sto\stake\sthe\smodified\susage\sof\ssqlite3VdbeClearObject()\sinto\saccount. - D 2012-11-06T20:39:11.759 -C Disable\sthe\stable\sselection\srule\sthat\stried\sto\sprevent\sfull\stable\sscans\sfrom\nmigrating\sto\sthe\souter\sloop\sunless\sthey\swere\soptimal.\s\sThe\snew\sscaling\sof\s\nouter-loop\scosts\sby\scost\sof\sinner\sloops\sobviates\sthe\sneed\sfor\sthat\sstep.\s\sAnd,\nin\sfact,\sthat\sstep\scauses\sproblems\swith\sthe\snew\sinner-loop\scost\saccounting. -D 2012-11-09T18:22:26.026 ++C Take\sinto\saccount\sthe\scost\sof\sinner\sloops\swhen\sselecting\swhich\stable\sof\sa\sjoin\nto\suse\sfor\sthe\snext\souter\sloop. ++D 2012-11-09T18:32:05.073 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.in 82c41c0ed4cc94dd3cc7d498575b84c57c2c2384 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 @@@ -1022,7 -1024,7 +1024,7 @@@ F tool/vdbe-compress.tcl f12c884766bd14 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4 F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381 F tool/win/sqlite.vsix 97894c2790eda7b5bce3cc79cb2a8ec2fde9b3ac - P 6b4979e86c05f2da2c5fff67ea7feec5fa56756a - R 275b30fd4dabbb76a3c510773e928640 - U mistachkin - Z 07851b8d86e7907c3dc0dd17f564d79e -P 942556342a332b04a11169bb04f387d741ef9488 ++P 82eb7eadb8c76b3af8c811d791f87a634c35935f 51bfd63b7f9fe53831570ad124c932cb3582b104 + R 283b8e4433f3480f37a4748d3a98dd6b + U drh -Z d761059332f6b35837425e120092c25f ++Z fb5e55182e15313d5ce5bacd4603beff diff --cc manifest.uuid index 8c413f9a8d,6f8dcc7f72..0844db388b --- a/manifest.uuid +++ b/manifest.uuid @@@ -1,1 -1,1 +1,1 @@@ - 82eb7eadb8c76b3af8c811d791f87a634c35935f -51bfd63b7f9fe53831570ad124c932cb3582b104 ++3f87f4593b631819609248c8f1370c1e19465eb0