1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

Add a compile-time constant for configuring the default pagecache setup.

FossilOrigin-Name: ad5fdfbac85682f0f0dee62e1086f40026a58be2
This commit is contained in:
drh
2015-07-07 21:14:42 +00:00
parent fd5ae9649c
commit 4297c7c4be
4 changed files with 19 additions and 9 deletions

View File

@@ -509,6 +509,16 @@
# define SQLITE_MAX_WORKER_THREADS SQLITE_DEFAULT_WORKER_THREADS
#endif
/*
** The default initial allocation for the pagecache when using separate
** pagecaches for each database connection. A positive number is the
** number of pages. A negative number N translations means that a buffer
** of -1024*N bytes is allocated and used for as many pages as it will hold.
*/
#ifndef SQLITE_DEFAULT_PCACHE_INITSZ
# define SQLITE_DEFAULT_PCACHE_INITSZ 100
#endif
/*
** GCC does not define the offsetof() macro so we'll have to do it