Skip to content

docs: clarify Lambda DB pool sizing and sequential query behavior - #213

Open
jbeard4 wants to merge 1 commit into
developfrom
codex/analyze-database-queries-for-parallel-execution
Open

docs: clarify Lambda DB pool sizing and sequential query behavior#213
jbeard4 wants to merge 1 commit into
developfrom
codex/analyze-database-queries-for-parallel-execution

Conversation

@jbeard4

@jbeard4 jbeard4 commented Jul 15, 2026

Copy link
Copy Markdown
Member

Motivation

  • Document the database pool environment variables and explain whether DATABASE_POOL_MAX=1 is safe for Lambda given that the codebase uses Promise.all(...) fan-outs for some DB work.

Description

  • Update README.md to add DATABASE_POOL_MAX and DATABASE_POOL_MIN environment variable docs and a Lambda connection pooling note that explains presence of Promise.all(...) queries and why pool.max=1 is acceptable for per-Lambda environments while noting the latency tradeoff for fan-out endpoints.

Testing

  • Performed automated code searches (rg) to confirm Promise.all(...) fan-outs and inspected src/config.js to verify the default pool.max behavior, and ran the repository pre-commit lint check which failed due to unrelated repo lint errors; no unit/integration tests were executed for this docs-only change.

Codex Task

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR contains no changed files or diff, so there are no code changes or blocking issues to review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant