From 9bb9a6db18f9c54df3356bc5116ac064637e8368 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 7 Dec 2011 20:00:10 +0100 Subject: sqlite: add option to enable additional query optimizations (stat3) Signed-off-by: Sven Neumann Reviewed-by: Thomas De Schampheleire Signed-off-by: Peter Korsgaard --- package/sqlite/Config.in | 8 ++++++++ package/sqlite/sqlite.mk | 4 ++++ 2 files changed, 12 insertions(+) (limited to 'package') diff --git a/package/sqlite/Config.in b/package/sqlite/Config.in index f9b12ae9f..25aaa3ff8 100644 --- a/package/sqlite/Config.in +++ b/package/sqlite/Config.in @@ -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. + diff --git a/package/sqlite/sqlite.mk b/package/sqlite/sqlite.mk index 0bee337e7..042c7f91f 100644 --- a/package/sqlite/sqlite.mk +++ b/package/sqlite/sqlite.mk @@ -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 = \ -- cgit v1.2.3