aboutsummaryrefslogtreecommitdiff
path: root/src/global.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-03-07 17:49:17 +0000
committerdrh <drh@noemail.net>2016-03-07 17:49:17 +0000
commitc5c67abb9ab2c58d41f75a41a1693e4b30e00bd5 (patch)
tree27752830b165d06e6980a19a1a95291599818886 /src/global.c
parent2606aca80f35c4672c7834e90786d737679fa35b (diff)
parent8c71a98ce13ce3169e6533dd05fce3c2cac2926a (diff)
downloadsqlite-c5c67abb9ab2c58d41f75a41a1693e4b30e00bd5.tar.gz
sqlite-c5c67abb9ab2c58d41f75a41a1693e4b30e00bd5.zip
Merge the virtual table query planner enhancement, the RTREE cost estimate
fix, and the statement journal spill delay enhancement from trunk. FossilOrigin-Name: 17fd8f3cf0ec565e08403dc8e10a1cffc2bbe165
Diffstat (limited to 'src/global.c')
-rw-r--r--src/global.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/global.c b/src/global.c
index 294d62fea..bd70b3827 100644
--- a/src/global.c
+++ b/src/global.c
@@ -159,6 +159,18 @@ const unsigned char sqlite3CtypeMap[256] = {
# define SQLITE_SORTER_PMASZ 250
#endif
+/* Statement journals spill to disk when their size exceeds the following
+** threashold (in bytes). 0 means that statement journals are created and
+** written to disk immediately (the default behavior for SQLite versions
+** before 3.12.0). -1 means always keep the entire statement journal in
+** memory. (The statement journal is also always held entirely in memory
+** if journal_mode=MEMORY or if temp_store=MEMORY, regardless of this
+** setting.)
+*/
+#ifndef SQLITE_STMTJRNL_SPILL
+# define SQLITE_STMTJRNL_SPILL (64*1024)
+#endif
+
/*
** The following singleton contains the global configuration for
** the SQLite library.
@@ -173,6 +185,7 @@ SQLITE_WSD struct Sqlite3Config sqlite3Config = {
0, /* neverCorrupt */
128, /* szLookaside */
500, /* nLookaside */
+ SQLITE_STMTJRNL_SPILL, /* nStmtSpill */
{0,0,0,0,0,0,0,0}, /* m */
{0,0,0,0,0,0,0,0,0}, /* mutex */
{0,0,0,0,0,0,0,0,0,0,0,0,0},/* pcache2 */