In ORDER BY LIMIT queries, try to evaluate the ORDER BY terms first, and it
commit7b114c4738134c11a0e6044a4ab0199523aaa691
authorD. Richard Hipp <drh@hwaci.com>
Thu, 3 May 2018 23:20:06 +0000 (3 23:20 +0000)
committerD. Richard Hipp <drh@hwaci.com>
Thu, 3 May 2018 23:20:06 +0000 (3 23:20 +0000)
treeff05d206a4015dace7d24fffb2edcb3ed654af96
parent9087ac03b1d4e84a5bea6aa45f22f55f66e12563
parent1e36bca443dd94b4859e8955917fd8e2b4e66010
In ORDER BY LIMIT queries, try to evaluate the ORDER BY terms first, and it
it becomes clear that the row will not come in under the LIMIT, then skip
evaluation of the other columns.
src/select.c
src/sqliteInt.h