Why it matters
Size pools to concurrency limits; never hold connections during LLM calls.
Practical steps
- Choose storage for data connection pooling deliberately (SQLite vs Postgres vs KV); document why.
- Implement size pools to concurrency limits; never hold connections during LLM calls with migrations that are additive and reversible where possible.
- Use transactions / idempotency keys so retries of data connection pooling do not double-write.
- Add a fixture DB and migration test covering data connection pooling.
- Document backup/restore touching tables used by data connection pooling.
Watch out for
- Copy-pasting outdated snippets for data connection pooling without re-reading current official docs.
- Shipping data connection pooling to production without a staging rehearsal and a documented rollback.