From 9e8c2665330c249c4d2bb3d51faaa4ec4a514d1d Mon Sep 17 00:00:00 2001 From: Xor290 Date: Sat, 28 Feb 2026 13:36:28 +0100 Subject: [PATCH] chore: update pool db --- backend/gestion/db/db_init.go | 4 ++-- backend/gestion/db/redis.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/gestion/db/db_init.go b/backend/gestion/db/db_init.go index 0b7e6dd6..08592a9b 100644 --- a/backend/gestion/db/db_init.go +++ b/backend/gestion/db/db_init.go @@ -47,8 +47,8 @@ func InitDB() *Database { } // Configuration du pool de connexions - db.SetMaxOpenConns(25) - db.SetMaxIdleConns(5) + db.SetMaxOpenConns(50) + db.SetMaxIdleConns(10) db.SetConnMaxLifetime(5 * time.Minute) // Tester la connexion diff --git a/backend/gestion/db/redis.go b/backend/gestion/db/redis.go index 5f7c99a6..5fe773fd 100644 --- a/backend/gestion/db/redis.go +++ b/backend/gestion/db/redis.go @@ -28,7 +28,7 @@ const ( // Temps moyen estimé par livraison (en minutes) AVG_DELIVERY_TIME = 15 // Nombre maximum de commandes par livreur - MAX_COMMANDS_PER_DELIVERYMAN = 10 + MAX_COMMANDS_PER_DELIVERYMAN = 20 ) // ============================================