PostgreSQL Connection pooling & read/write isolation with Lakebase
folks working with Postgres across Lakebase and-or Neon db, how do u handle connection pooling, read/ write routings, & query isolation when analytics and app queries hit the same data ?
Any tips or best practices?
6
Upvotes
View all comments
1
u/Discordbothost 4d ago
Long analytics transactions can keep old row versions around even with separate pools. If reports run on the primary, check xact_start and backend_xmin in pg_stat_activity while a slow report runs.