Commit Graph
5 Commits
Author SHA1 Message Date
Trenton H 33a27167d5 refactor: clarify isolation_level intent and cache_size unit
Add comment explaining isolation_level is explicit even though Django
defaults to the same value, so the intent survives future Django changes.
Add KiB unit comment to cache_size=-8000.
Rename sqlite-init-command-override test to sqlite-options-override to
reflect that both init_command and transaction_mode are being overridden.
2026-04-14 16:22:45 -07:00
Trenton HandClaude Sonnet 4.6 b595da9221 feat: add database tuning defaults to parse_db_settings
Change PAPERLESS_DB_OPTIONS separator from ';' to ',' so SQLite
init_command values (which use ';' between PRAGMAs) can be overridden
without escaping.

SQLite: WAL journal mode, NORMAL synchronous, 5s busy timeout, memory
temp store, 128MB mmap, 64MB journal size limit, 8MB cache, and
IMMEDIATE transaction mode for correct busy_timeout behaviour.
PostgreSQL: application_name=paperless-ngx for pg_stat_activity.
MariaDB: isolation_level=read committed to eliminate gap locking.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 15:31:10 -07:00
Trenton H 86fa74c115 Fix: Postgres selection, DBENGINE and migrations (#12299) 2026-03-11 11:54:24 -07:00
Trenton H 0bcf904e3a Chore: Finish settings refactor (#12263) 2026-03-09 17:43:51 +00:00
Trenton H 5988d5896b Breaking: Refactor advanced database settings to allow more user configuration (#12165) 2026-02-27 14:37:26 -08:00