batch size wants to be smaller for less lockign time, not higher

This commit is contained in:
Andre Medeiros 2022-11-05 21:13:05 -04:00
parent b18ae59207
commit 5eabaebf45

View file

@ -23,7 +23,7 @@ import (
"github.com/christianselig/apollo-backend/internal/repository" "github.com/christianselig/apollo-backend/internal/repository"
) )
const batchSize = 2000 const batchSize = 250
func SchedulerCmd(ctx context.Context) *cobra.Command { func SchedulerCmd(ctx context.Context) *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{