SQLite Shared-Cache Mode
(sharedcache.html)
1.1. Use of shared-cache is discouraged
... Most use cases for shared-cache are better served by
WAL mode.
Shared-cache mode was invented in 2006 at the request of developers
of Symbian. Their problem was that
if the contacts database on the phone was being synced ...
|
C API: Database Connection Configuration Options
(c3ref/c_dbconfig_defensive.html)
SQLITE_DBCONFIG_MAINDBNAME, SQLITE_DBCONFIG_LOOKASIDE, SQLITE_DBCONFIG_ENABLE_FKEY, SQLITE_DBCONFIG_ENABLE_TRIGGER, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION ...
... This step is only necessary if the application desires to keep
the database in WAL mode after the reset if it was in WAL mode before
the reset.
sqlite3_db_config(db, SQLITE_DBCONFIG_RESET_DATABASE, 1, 0);
sqlite3_exec(db, "VACUUM", 0, 0, 0);
sqlite3_db_config ...
|
SQLite Older News
(oldnews.html)
... 2011-05-19 - Version 3.7.6.3
SQLite version 3.7.6.3 is a patch release that fixes a
single bug
associated with WAL mode. The bug has been in SQLite ever since WAL
was added, but the ...
|
The Checksum VFS Shim
(cksumvfs.html)
4. Usage
... If the database is in WAL mode, you should shutdown and
reopen all database connections before continuing.
From the CLI, use the ".filectrl reserve_bytes 8" command,
followed by "VACUUM;".
Note that SQLite allows the number of reserve-bytes to be ...
|
The Tcl interface to the SQLite library
(tclsqlite.html)
3.28. The wal_hook method
This method registers a callback routine that is invoked after transaction
commit when the database is in WAL mode. Two arguments are appended to the
callback command before it is invoked:
The name of the database on which the transaction ...
|
VACUUM
(lang_vacuum.html)
... When overwriting the original, a rollback
journal or write-ahead log WAL file is used just as it would be for any
other database transaction. This means that when VACUUMing a database,
as much as twice the size of the ...
|
Compile-time Options
(compile.html)
2. Recommended Compile-time Options
... However, in WAL mode, complete
database integrity is guaranteed with PRAGMA synchronous=NORMAL. With
PRAGMA synchronous=NORMAL in WAL mode, recent changes to the database might
be rolled back by a power loss, but the database will not be corrupted ...
|
Transaction
(lang_transaction.html)
... EXCLUSIVE and IMMEDIATE are the same
in WAL mode, but in other journaling modes, EXCLUSIVE prevents
other database connections from reading the database while the
transaction is underway.
2.3. Implicit versus explicit transactions
An implicit transaction (a transaction that ...
|
Database Remote-Copy Tool For SQLite
(rsync.html)
3. Limitations
The database files must both be in WAL mode, and must have the
same page-size. ← This limitation was removed in
version 3.50.0 (2025-05-29).
While sqlite3_rsync is running, REPLICA is read-only.
Queries can be ...
|
35% Faster Than The Filesystem
(fasterthanfs.html)
2.2. Write Performance Measurements
... The next chart compares SQLite database updates in WAL mode
against raw direct-to-disk overwrites of separate files on disk.
The PRAGMA synchronous setting is NORMAL.
All database writes are in a single transaction.
The timer for the database ...
|
Page generated by FTS5 in about 58.26 ms.