Update db connection pool size

This commit is contained in:
2024-05-13 13:39:37 +02:00
parent 5ff90d4814
commit f540a635c8

View File

@@ -2,7 +2,7 @@ use crate::{config::CONFIG, prisma::PrismaClient};
pub async fn get_prisma_client() -> PrismaClient { pub async fn get_prisma_client() -> PrismaClient {
let database_url: String = format!( let database_url: String = format!(
"postgresql://{}:{}@{}:{}/{}?connection_limit=1", "postgresql://{}:{}@{}:{}/{}?connection_limit=10",
CONFIG.postgres_user, CONFIG.postgres_user,
CONFIG.postgres_password, CONFIG.postgres_password,
CONFIG.postgres_host, CONFIG.postgres_host,