tursodatabase/turso

Cached prepare statements don't work with concurrency

Open

#4,597 opened on Jan 11, 2026

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Rust (1,001 forks)github user discovery
bughelp wanted

Repository metrics

Stars
 (19,103 stars)
PR merge metrics
 (PR metrics pending)

Description

A cached prepared statement created with Connection::prepare_cached() returns BusySnapshot error if another concurrent connection modifies the database, essentially making it impossible to reuse a connection in a connect pool.

Contributor guide