Skip to content

Instantly share code, notes, and snippets.

View arg2009's full-sized avatar

Ruben Funai arg2009

View GitHub Profile
@eusonlito
eusonlito / 01-README.md
Last active August 14, 2025 23:03
SQLite optimization for Laravel

The SQLite optimizations must be carried out at two different times: once in a unique and permanent way for the database and another time for each connection that is made. Below are the configurations that should be made in each case.

Unique and Permanent Configurations

These configurations are set only once and affect the database persistently, meaning they do not need to be reconfigured each time a connection is established:

PRAGMA journal_mode = WAL;

Sets the database journal mode to "WAL" (Write-Ahead Logging), which improves performance in concurrent operations.