From: drh Date: Fri, 20 May 2016 14:11:37 +0000 (+0000) Subject: For queries with both ORDER BY and LIMIT, if the rows of the inner loop are X-Git-Tag: version-3.14.0~157 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1524c672e91a57c7a995d980b4e65e3870cc0e24;p=thirdparty%2Fsqlite.git For queries with both ORDER BY and LIMIT, if the rows of the inner loop are emitted in ORDER BY order and the LIMIT has been reached, then optimize by exiting the inner loop and continuing with the next cycle of the first outer loop. FossilOrigin-Name: 559733b09e9630fac9d9318a7ecbaba9134e9160 --- 1524c672e91a57c7a995d980b4e65e3870cc0e24 diff --cc manifest index 21af3597e4,7eaabf0f13..018cac9cb3 --- a/manifest +++ b/manifest @@@ -1,5 -1,5 +1,5 @@@ - C Autoconf\sconfigure.ac\sadjustment\sto\stry\sto\sget\sit\sto\slook\sfor\sboth\seditline\nand\sreadline\sautomatically. - D 2016-05-20T12:22:16.170 -C Set\sthe\sNULLEQ\sflag\son\sthe\ssequence\scounter\scomparison\sin\sthe\sORDER\sBY\sLIMIT\noptimization,\sto\savoid\scoverage\scomplaints\sabout\snot\stesting\sthe\sNULL\scase. -D 2016-05-20T13:44:58.389 ++C For\squeries\swith\sboth\sORDER\sBY\sand\sLIMIT,\sif\sthe\srows\sof\sthe\sinner\sloop\sare\nemitted\sin\sORDER\sBY\sorder\sand\sthe\sLIMIT\shas\sbeen\sreached,\sthen\soptimize\sby\nexiting\sthe\sinner\sloop\sand\scontinuing\swith\sthe\snext\scycle\sof\sthe\sfirst\souter\nloop. ++D 2016-05-20T14:11:37.786 F Makefile.in f59e0763ff448719fc1bd25513882b0567286317 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434 F Makefile.msc 306d73e854b1a92ea06e5d1e637faa5c44de53c7 @@@ -1489,7 -1490,7 +1490,8 @@@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a9 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0 - P 58b516e8c0b00a41bc0364eab267bc2ecb9efeff - R 1ccdb41fa76e9f52d7032b7d9c7cb950 -P 08849eab0f6ef29eaf6d2ce9c692de9b953dbd27 -R 8c75a4632edf1c4d959356bd614336cd ++P 645bd696dfd86d8c93080f6ebfddbc9639ec088b ed1b30dc932a7c03e173b130c5f55f9989c7e0b4 ++R b166646a4114a46c17faadb7ecf63948 ++T +closed ed1b30dc932a7c03e173b130c5f55f9989c7e0b4 U drh - Z 54717b5e62279adb2d1cf6e8a28ff9fe -Z 54e2cd90f1a7f48806580b84bc51f48b ++Z aa696592564772ea00c367935ddfa343 diff --cc manifest.uuid index d3cfa1aab3,65694bee6c..048e943fec --- a/manifest.uuid +++ b/manifest.uuid @@@ -1,1 -1,1 +1,1 @@@ - 645bd696dfd86d8c93080f6ebfddbc9639ec088b -ed1b30dc932a7c03e173b130c5f55f9989c7e0b4 ++559733b09e9630fac9d9318a7ecbaba9134e9160