Home - TIL - Zines

SQLite WAL Mode

If you are using SQLite in a write heavy mode you might want to use the newer Write-Ahead Logging (WAL) journaling mode. This mode is database wide and you can run the following command to enable it for a specific database file.

sqlite3 github.db 'PRAGMA journal_mode=WAL;'

References

Enabling Wal Mode
Write-Ahead Logging


Do you have a question? I want to hear from you!

Ask Me Anything

JoelDare.com © Dare Companies Dotcom LLC

Terms - Privacy