Skip to content

Commit 804498e

Browse files
authored
Merge branch 'main' into kalilsn/form-switcher
2 parents 23e5c0a + 79ed28b commit 804498e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/kysely/database-init.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ export const createDatabase = (options: DatabaseOptions) => {
3333
const dialect = new PostgresDialect({
3434
pool: new pg.Pool({
3535
connectionString: options.url,
36+
idle_in_transaction_session_timeout: 1000,
37+
connectionTimeoutMillis: 10_000,
38+
max: 20,
3639
}),
3740
});
3841

0 commit comments

Comments
 (0)