From 5eabaebf45884bde5edefb96a3b917b7df5ccb9d Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Sat, 5 Nov 2022 21:13:05 -0400 Subject: [PATCH] batch size wants to be smaller for less lockign time, not higher --- internal/cmd/scheduler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/scheduler.go b/internal/cmd/scheduler.go index 7782f24..10b442d 100644 --- a/internal/cmd/scheduler.go +++ b/internal/cmd/scheduler.go @@ -23,7 +23,7 @@ import ( "github.com/christianselig/apollo-backend/internal/repository" ) -const batchSize = 2000 +const batchSize = 250 func SchedulerCmd(ctx context.Context) *cobra.Command { cmd := &cobra.Command{