English
Open in Telegram

Post Re: SQLite concurrency and why you should care about it

25 November 2025
H
HOLDER:DEV
Link
click to show
Re: SQLite concurrency and why you should care about it In SQLite, transactions by default start in “deferred” mode. This means they do not take a write lock until they attempt to perform a write. You get SQLITE_BUSY when transaction #1 starts in read mode, transaction #2 starts in write mode, and then transaction #1 attempts to upgrade from read to write mode while transaction #2 still holds the write lock. The fix is to set a busy_timeout and to begin any transaction that does a write (any write, even if it is not the first operation in the transaction) in “immediate” mode rather than “deferred” mode. https://zeroclarkthirty.com/2024-10-19-sqlite-database-is-lo... asa400, 7 hours ago
2 ·

Nearby in the feed

HHOLDER:DEVRe: NPM flooded with malicious packages downloaded more than 86k times Here's my `npm` command these days. It reduces the attack surface drastically. alias npm=HHOLDER:DEVhttps://types.kitlangton.com/
this message
HHOLDER:DEVЧто таит гит? https://medium.com/@sharon.brizinov/how-i-made-64k-from-deleted-files-a-bug-bounty-story-c5bd3a6f5f9b Прочитал супер крутую историю одного bug bouHHOLDER:DEVRe: Litestream VFS Oh hey this is using my go sqlite vfs module[0]. I love it when I find out some code I wrote is useful to others! [0]: https://github.com/psa
HHOLDER:DEVHOLDER:DEV@mydev · channel · Tech
2subscribers400posts in the index
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count