From 6945b9f9edacefec444230782e9a7c857a32fa91 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 16 Apr 2026 23:50:19 +0000 Subject: [PATCH] Drop to a single worker in the geocode pool I'm sharing transactions incorrectly, and until I fix that I need correctness, not speed. --- platform/csv/pool.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/platform/csv/pool.go b/platform/csv/pool.go index 72a69ef9..74dccfb2 100644 --- a/platform/csv/pool.go +++ b/platform/csv/pool.go @@ -80,10 +80,14 @@ func bulkGeocode(ctx context.Context, txn bob.Tx, file *models.FileuploadFile, c errors := make(chan error, len(pools)) var wg sync.WaitGroup - for i := 0; i < 20; i++ { - wg.Add(1) - go worker(ctx, txn, client, jobs, errors, &wg) - } + /* + for i := 0; i < 20; i++ { + wg.Add(1) + go worker(ctx, txn, client, jobs, errors, &wg) + } + */ + wg.Add(1) + go worker(ctx, txn, client, jobs, errors, &wg) for _, pool := range pools { jobs <- &jobGeocode{