aboutsummaryrefslogtreecommitdiff
path: root/src/sqlite.h.in
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/sqlite.h.in
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/sqlite.h.in')
-rw-r--r--src/sqlite.h.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/sqlite.h.in b/src/sqlite.h.in
index 31202ecc2..cce23aa22 100644
--- a/src/sqlite.h.in
+++ b/src/sqlite.h.in
@@ -1820,6 +1820,20 @@ struct sqlite3_mem_methods {
** is enabled (using the [PRAGMA threads] command) and the amount of content
** to be sorted exceeds the page size times the minimum of the
** [PRAGMA cache_size] setting and this value.
+**
+** [[SQLITE_CONFIG_STMTJRNL_SPILL]]
+** <dt>SQLITE_CONFIG_STMTJRNL_SPILL
+** <dd>^The SQLITE_CONFIG_STMTJRNL_SPILL option takes a single parameter which
+** becomes the [statement journal] spill-to-disk threshold.
+** [Statement journals] are held in memory until their size (in bytes)
+** exceeds this threshold, at which point they are written to disk.
+** Or if the threshold is -1, statement journals are always held
+** exclusively in memory.
+** Since many statement journals never become large, setting the spill
+** threshold to a value such as 64KiB can greatly reduce the amount of
+** I/O required to support statement rollback.
+** The default value for this setting is controlled by the
+** [SQLITE_STMTJRNL_SPILL] compile-time option.
** </dl>
*/
#define SQLITE_CONFIG_SINGLETHREAD 1 /* nil */
@@ -1847,6 +1861,7 @@ struct sqlite3_mem_methods {
#define SQLITE_CONFIG_WIN32_HEAPSIZE 23 /* int nByte */
#define SQLITE_CONFIG_PCACHE_HDRSZ 24 /* int *psz */
#define SQLITE_CONFIG_PMASZ 25 /* unsigned int szPma */
+#define SQLITE_CONFIG_STMTJRNL_SPILL 26 /* int nByte */
/*
** CAPI3REF: Database Connection Configuration Options