From: drh Date: Thu, 25 Feb 2016 18:40:18 +0000 (+0000) Subject: Query planner improvements: Take the LIMIT into account when estimated the X-Git-Tag: version-3.12.0~147 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eecb80e77e3556e9373237eff6ab0a8dad7eb5fb;p=thirdparty%2Fsqlite.git Query planner improvements: Take the LIMIT into account when estimated the cost of an ORDER BY. Avoid automatic indexes on query loops that are expected to run less than twice. FossilOrigin-Name: bf46179d4484376909dce40ffcc06fecb19b3544 --- eecb80e77e3556e9373237eff6ab0a8dad7eb5fb diff --cc manifest index ed34efd918,cb1fddd357..cd7f610e12 --- a/manifest +++ b/manifest @@@ -1,5 -1,5 +1,5 @@@ - C In\sthe\scommand-line\sshell:\s\sWhen\sthe\s".import"\scommand\sis\screating\sa\snew\ntable\susing\scolumn\snames\sfrom\sthe\sfirst\srow\sof\sCSV\sinput,\smake\ssure\s\ndouble-quotes\sin\sthe\sname\sare\sproperly\sescaped. - D 2016-02-25T13:33:02.701 -C Improvement\son\sthe\sprevious\scheck-in:\s\sdisallow\sautomatic\sindexes\sfor\sany\nloop\sthat\sis\sexpected\sto\srun\sless\sthan\stwice. -D 2016-02-25T18:22:09.962 ++C Query\splanner\simprovements:\s\sTake\sthe\sLIMIT\sinto\saccount\swhen\sestimated\sthe\ncost\sof\san\sORDER\sBY.\s\sAvoid\sautomatic\sindexes\son\squery\sloops\sthat\sare\sexpected\nto\srun\sless\sthan\stwice. ++D 2016-02-25T18:40:18.408 F Makefile.in 4e90dc1521879022aa9479268a4cd141d1771142 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434 F Makefile.msc 28fc4ee02333996d31b3602b39eeb8e609a89ce4 @@@ -1429,7 -1429,7 +1429,8 @@@ F tool/vdbe_profile.tcl 246d0da094856d7 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4 F tool/warnings.sh a98af506df552f3b3c0d904f94e4cdc4e1a6d598 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f - P e721975faa0925be4029330550ff2a9666041ff7 - R c8d6b90bca6c11dea1a586d1afdb957c -P 5957e793414ff80ed01a7a67e70c3fd096a3f6e0 ++P 2e67a1c823c7003e7d2619c7d8b6db6ce046c527 aab53a21894ba51d325fd8f8f4bb4163ece74391 + R 8a8e5a80c02a4dfa694df7d4a40dc042 ++T +closed aab53a21894ba51d325fd8f8f4bb4163ece74391 U drh - Z 8dad8d5c86c3c0b275d53a26a0713023 -Z 5c10952be751c4b6279994eaa94bd734 ++Z a9e5cc9fdd4504d0ecf5a0daa8c57736 diff --cc manifest.uuid index 6f30a6f925,27e8814012..6a068ab962 --- a/manifest.uuid +++ b/manifest.uuid @@@ -1,1 -1,1 +1,1 @@@ - 2e67a1c823c7003e7d2619c7d8b6db6ce046c527 -aab53a21894ba51d325fd8f8f4bb4163ece74391 ++bf46179d4484376909dce40ffcc06fecb19b3544