Skip to content

jerrycan-db: JERRYCAN_DB_POOL_SIZE pool knob, default max(5, cores*2) (#305) - #306

Merged
Sorcecoder merged 2 commits into
mainfrom
fix/305-db-pool-size
Sep 1, 2026
Merged

Sorcecoder merged 2 commits into
mainfrom
fix/305-db-pool-size

Conversation

@Sorcecoder

Copy link
Copy Markdown
Contributor

Fixes #305. Postgres pool size was hardcoded to 5 with no config knob. Adds JERRYCAN_DB_POOL_SIZE: a positive value wins verbatim; unset/garbage/zero falls back to max(5, available_parallelism*2). SQLite stays single-connection. Pure resolve_pg_pool_size fn with a unit test covering all three cases. No new deps, no version bump.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

jerrycan-db: connection pool is hardcoded to 5 with no config knob

1 participant