Skip to content

Commit

Permalink
fix: functions database connection limit and retries (#1594)
Browse files Browse the repository at this point in the history
  • Loading branch information
davenewza authored Oct 22, 2024
1 parent 654f775 commit 0b342ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/functions-runtime/src/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ function getDialect() {

const pool = new InstrumentedNeonServerlessPool({
connectionString: mustEnv("KEEL_DB_CONN"),
max: 1, // Limit to 1 connection per Lambda instance
});

pool.on("connect", (client) => {
Expand Down

0 comments on commit 0b342ec

Please sign in to comment.