refactor: update totalRows constant and add siteHolderAttach data generation logic; enhance row generation and loading process

This commit is contained in:
2026-05-09 01:33:12 -05:00
parent b690e580c5
commit 5a8bce7701
2 changed files with 239 additions and 3 deletions

View File

@@ -12,9 +12,10 @@ import (
)
const (
totalRows int = 1_000_000
chunkSize int = 50_000
queueSize int = 4
// totalRows int = 1_000_000
totalRows int = 10_000
chunkSize int = 50_000
queueSize int = 4
)
func main() {
@@ -40,6 +41,14 @@ func main() {
seedManzanas(ctx, db)
})
wgSeed.Go(func() {
seedPuertos(ctx, db)
})
wgSeed.Go(func() {
seedSiteHolderAttach(ctx, db)
})
wgSeed.Wait()
}