Skip to content

fix(app): BEGIN IMMEDIATE for writing transactions, un-disable connection max lifetime - #7628

Draft
fetchfern wants to merge 2 commits into
mainfrom
fetch/begin-immediate
Draft

fetchfern wants to merge 2 commits into
mainfrom
fetch/begin-immediate

Conversation

@fetchfern

@fetchfern fetchfern commented Sep 20, 2026

Copy link
Copy Markdown
Member

SQLite will immediately error with SQLITE_BUSY if it tries to promote a read transaction to a write transaction, but a write invalidated the previously-read data. BEGIN IMMEDIATE makes the transaction immediately acquire a write lock and wait for busy_timeout, avoiding the deadlock entirely

Also removes the recently-introduced max_lifetime(None) on the pool options because there's no point in setting this, better to keep rotating connections for longer app sessions

@github-actions

Copy link
Copy Markdown
Contributor

Pull request changelog

App

Added

Changed

Deprecated

Removed

Fixed

Security

Website

Added

Changed

Deprecated

Removed

Fixed

Security

Hosting

Added

Changed

Deprecated

Removed

Fixed

Security

@fetchfern
fetchfern marked this pull request as draft September 20, 2026 00:50

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant