From 1ab494195fd206bb3ecf4c49991d71dde2e38330 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 10 Dec 2011 22:13:22 +0100 Subject: [PATCH] sqlite: add option to add additional logic to the ANALYZE command and to the query planner that can help SQLite to chose a better query plan under certain situations Signed-off-by: Stephan Raue --- packages/databases/sqlite/build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/databases/sqlite/build b/packages/databases/sqlite/build index 98ab3e5b8b..81d8664846 100755 --- a/packages/databases/sqlite/build +++ b/packages/databases/sqlite/build @@ -26,6 +26,13 @@ CFLAGS=`echo $CFLAGS | sed -e "s|-Ofast|-O3|"` CFLAGS=`echo $CFLAGS | sed -e "s|-ffast-math||"` +# This option adds additional logic to the ANALYZE command and to the query planner +# that can help SQLite to chose a better query plan under certain situations. The +# ANALYZE command is enhanced to collect histogram data from each index and store +# that data in the sqlite_stat3 table. The query planner will then use the histogram +# data to help it make better index choices. + CFLAGS="$CFLAGS -DSQLITE_ENABLE_STAT3" + cd $PKG_BUILD ./configure --host=$TARGET_NAME \ --build=$HOST_NAME \