Skip to content

perf(db): tune SQLite connection pragmas for small VPS - #550

Merged
vastsa merged 1 commit into
vastsa:masterfrom
jcbl1:upstream/03-sqlite-pragmas
Oct 25, 2026
Merged

vastsa merged 1 commit into
vastsa:masterfrom
jcbl1:upstream/03-sqlite-pragmas

Conversation

@jcbl1

@jcbl1 jcbl1 commented Oct 24, 2026

Copy link
Copy Markdown
Contributor
  • synchronous=NORMAL: WAL keeps committed data safe against app crashes while skipping an fsync per commit.
  • temp_store=MEMORY: temp tables and sorts stay in RAM.
  • cache_size=-8000: cap page cache at ~8MB.

Tortoise's SqliteClient applies every non-file_path credential as a PRAGMA on its single connection, so this is the only place that needs changing.

- synchronous=NORMAL: WAL keeps committed data safe against app crashes
  while skipping an fsync per commit.
- temp_store=MEMORY: temp tables and sorts stay in RAM.
- cache_size=-8000: cap page cache at ~8MB.

Tortoise's SqliteClient applies every non-file_path credential as a PRAGMA
on its single connection, so this is the only place that needs changing.
@vercel

vercel Bot commented Oct 24, 2026

Copy link
Copy Markdown

@jcbl1 is attempting to deploy a commit to the vastsa's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vastsa
vastsa merged commit 2073f9b into vastsa:master Oct 25, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants