From 7692971b89cb923dc7f54c5000ca69a10d853f5b Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Thu, 22 Jul 2021 21:11:27 -0400 Subject: [PATCH] pool size doesn't need to be that big --- internal/cmd/worker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/cmd/worker.go b/internal/cmd/worker.go index a34db2f..817a44d 100644 --- a/internal/cmd/worker.go +++ b/internal/cmd/worker.go @@ -39,8 +39,9 @@ func WorkerCmd(ctx context.Context) *cobra.Command { defer statsd.Close() consumers := runtime.NumCPU() * multiplier + poolSize := multiplier / 8 - db, err := cmdutil.NewDatabasePool(ctx, multiplier) + db, err := cmdutil.NewDatabasePool(ctx, poolSize) if err != nil { return err }