upped buffer sizes and switched to 2xlarge to increase speed
This commit is contained in:
parent
1df9a234cf
commit
8dce702e8d
5 changed files with 10 additions and 8 deletions
|
|
@ -106,8 +106,8 @@ func main() {
|
|||
// [DB fetcher] → hostCh → [N workers] → resultCh → [DB writer]
|
||||
// Workers do S3 fetch + parsing (I/O-bound). Writer batches DB writes.
|
||||
|
||||
hostCh := make(chan Host, cfg.BatchSize)
|
||||
resultCh := make(chan WorkResult, cfg.Concurrency)
|
||||
hostCh := make(chan Host, 20000)
|
||||
resultCh := make(chan WorkResult, 1000)
|
||||
|
||||
// Stage 1: DB fetcher — continuously fetches pages into hostCh
|
||||
go func() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue