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 ) // ============================================