feat: refactor chunk handling in extractor and transformer for improved data processing

This commit is contained in:
2026-04-08 21:09:26 -05:00
parent 853be4a5a6
commit f6dfcd390f
3 changed files with 41 additions and 14 deletions

View File

@@ -48,7 +48,7 @@ func processMigrationJob(sourceDb *sql.DB, targetDb *pgxpool.Pool, job Migration
extractorErrorHandler(chExtractorErrors, chBatches, chJobErrors)
}()
chChunks := make(chan []UnknownRowValues, QueueSize)
chChunks := make(chan Chunk, QueueSize)
maxExtractors := min(NumExtractors, len(batches))
var wgMssqlExtractors sync.WaitGroup