sqlite: add option to enable additional query optimizations (stat3)
authorSven Neumann <s.neumann@raumfeld.com>
Wed, 7 Dec 2011 19:00:10 +0000 (20:00 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 11 Dec 2011 21:17:58 +0000 (22:17 +0100)
Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
Reviewed-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/sqlite/Config.in
package/sqlite/sqlite.mk

index f9b12ae9f2f9664df56f2d7e03ec20455786317a..25aaa3ff85f4c60ae78e2e7afdfc2877ec316b84 100644 (file)
@@ -14,3 +14,11 @@ config BR2_PACKAGE_SQLITE_READLINE
        help
          Enable command-line editing. This requires ncurses and readline.
 
+config BR2_PACKAGE_SQLITE_STAT3
+       bool "Additional query optimizations (stat3)"
+       depends on BR2_PACKAGE_SQLITE
+       help
+         Adds additional logic to the ANALYZE command and to the query
+         planner that can help SQLite to choose a better query plan under
+         certain situations.
+
index 0bee337e77ecb0053f00b0a2367b868ac09a73cd..042c7f91f985922143419829618f0046132d2b87 100644 (file)
@@ -16,6 +16,10 @@ ifneq ($(BR2_LARGEFILE),y)
 SQLITE_CFLAGS += -DSQLITE_DISABLE_LFS
 endif
 
+ifeq ($(BR2_PACKAGE_SQLITE_STAT3),y)
+SQLITE_CFLAGS += -DSQLITE_ENABLE_STAT3
+endif
+
 SQLITE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) $(SQLITE_CFLAGS)"
 
 SQLITE_CONF_OPT = \