First pass at optimizing max()/min() as described in #2853. Some refinements to come. (CVS 4687)

FossilOrigin-Name: c449e04f1870b1ff726c95c0bf1c6c6a22ca588a
This commit is contained in:
danielk1977
2008-01-05 17:39:29 +00:00
parent 5b6afba924
commit a9d1ccb9b0
11 changed files with 295 additions and 46 deletions
+3 -3
View File
@@ -15,7 +15,7 @@
# optimization works right in the presence of descending
# indices. Ticket #2514.
#
# $Id: minmax2.test,v 1.1 2007/07/18 18:17:12 drh Exp $
# $Id: minmax2.test,v 1.2 2008/01/05 17:39:30 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -71,14 +71,14 @@ do_test minmax2-1.5 {
} {1}
do_test minmax2-1.6 {
set sqlite_search_count
} {2}
} {1}
do_test minmax2-1.7 {
set sqlite_search_count 0
execsql {SELECT max(x) FROM t1}
} {20}
do_test minmax2-1.8 {
set sqlite_search_count
} {1}
} {0}
do_test minmax2-1.9 {
set sqlite_search_count 0
execsql {SELECT max(y) FROM t1}