]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
For queries with both ORDER BY and LIMIT, if the rows of the inner loop are
authordrh <drh@noemail.net>
Fri, 20 May 2016 14:11:37 +0000 (14:11 +0000)
committerdrh <drh@noemail.net>
Fri, 20 May 2016 14:11:37 +0000 (14:11 +0000)
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

1  2 
manifest
manifest.uuid

diff --cc manifest
index 21af3597e4b4424974716757bf8df17f0079c812,7eaabf0f133b2f526ee57beb1554f34b05cdccfe..018cac9cb303869f82c1cd0ea95bc5a24891d37f
+++ 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 d3cfa1aab3f1ef5c7e1702d50e6fbe2082260fc5,65694bee6c9d26f307ddf3c5afe64ae09dc5c2f7..048e943fec919196103a06cdcee4d8fbf9768e93
@@@ -1,1 -1,1 +1,1 @@@
- 645bd696dfd86d8c93080f6ebfddbc9639ec088b
 -ed1b30dc932a7c03e173b130c5f55f9989c7e0b4
++559733b09e9630fac9d9318a7ecbaba9134e9160