From f540a635c896e5d1e104613f4340bd7737823a31 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Mon, 13 May 2024 13:39:37 +0200 Subject: [PATCH] Update db connection pool size --- src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index 108a8db..87d38c7 100644 --- a/src/db.rs +++ b/src/db.rs @@ -2,7 +2,7 @@ use crate::{config::CONFIG, prisma::PrismaClient}; pub async fn get_prisma_client() -> PrismaClient { let database_url: String = format!( - "postgresql://{}:{}@{}:{}/{}?connection_limit=1", + "postgresql://{}:{}@{}:{}/{}?connection_limit=10", CONFIG.postgres_user, CONFIG.postgres_password, CONFIG.postgres_host,