From 1a19ab7175387e3748641de2fa6a051a6ab991d9 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Mon, 4 Nov 2024 16:53:58 -0800 Subject: [PATCH] Double pg connections --- backend/shared/src/supabase/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/shared/src/supabase/init.ts b/backend/shared/src/supabase/init.ts index a713eabc2f..4418b6d473 100644 --- a/backend/shared/src/supabase/init.ts +++ b/backend/shared/src/supabase/init.ts @@ -152,7 +152,7 @@ export function createSupabaseDirectClient( // Although we don't yet know the cause, setting this timeout will limit the damage // from these connections. We should figure out the cause ASAP. idle_in_transaction_session_timeout: 15_000, - max: 20, + max: 40, }) const pool = client.$pool pool.on('connect', () => metrics.inc('pg/connections_established'))