fix(db): restore SQLx statement caching to prevent pipeline crashes#20
fix(db): restore SQLx statement caching to prevent pipeline crashes#20
Conversation
|
Claude finished @jjleng's task in 1m 35s —— View job Code Review
SummaryThis PR reverses the previous decision to disable SQLx's prepared-statement cache ( There are also unrelated UI removals in Issues1. Dangling/broken comment in The removal of // Connect to the same Postgres DB as the Python backend.
// protocol for every query, which is required by Supabase/PgBouncer in
// transaction mode. Without this, parallel sqlx queries (tokio::join!) can
// hit a connection with a stale prepared-statement handle, causing
// "unnamed prepared statement does not exist" errors.Line 48 begins with The comment should be rewritten to reflect the current approach. Fix this → 2. No-op Two spots (lines 111 and 305) now have: let connect_opts = connect_opts;These are pure no-ops left over from replacing the 3. Stale comment in The // Create the pool on the new runtime with PgBouncer-safe settings"PgBouncer-safe" was the justification for Nits
OverallThe core logic change (re-enabling prepared statements, requiring session-mode pooler) is reasonable and the |
No description provided.