From Xojo Documentation
Enables the SQLite Write-Ahead Logging (WAL) mode which can improve performance of database writes. This is especially useful when multiple users are writing to the database, as can be the case with web applications.
If you want to use WAL, you need to set this property to True before connecting to the database.
WAL is faster than normal mode (called Journaled) because there is less disk writing. With WAL, a database change writes once to the write-ahead log. With Journaling, a database changes cause writes to a rollback file and to the original database file.
Although faster, WAL does have some limitations:
- SQLite 3.7.0 or later is required to open WAL database
- WAL database cannot be opened in read-only mode
- Rolling back large transaction (over 100MB) can be slow
- Two extra files are created (*.sqlite-wal and *.sqlite-shm) alongside the main database file
For more information about WAL, refer to the SQLite documentation: http://www.sqlite.org/draft/wal.html.
This example sets MultiUser to True for a SQLite database: