]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Take into account the cost of inner loops when selecting which table of a join
authordrh <drh@noemail.net>
Fri, 9 Nov 2012 18:32:05 +0000 (18:32 +0000)
committerdrh <drh@noemail.net>
Fri, 9 Nov 2012 18:32:05 +0000 (18:32 +0000)
to use for the next outer loop.

FossilOrigin-Name: 3f87f4593b631819609248c8f1370c1e19465eb0

1  2 
manifest
manifest.uuid

diff --cc manifest
index 46d197a9d4e6f42f91377b7e116744e20aeda036,66c67bce3f398e758508d2b231325d7706f8be5f..be8991af1e41b291fe58c45cb87961142aea4352
+++ 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 8c413f9a8d2500c6ad97ee16b82264b92947fe5c,6f8dcc7f72fea709c828a978ba59db34fbf8ef61..0844db388b99bb56822c8b86c4d78494dccb6430
@@@ -1,1 -1,1 +1,1 @@@
- 82eb7eadb8c76b3af8c811d791f87a634c35935f
 -51bfd63b7f9fe53831570ad124c932cb3582b104
++3f87f4593b631819609248c8f1370c1e19465eb0