refactor: update totalRows constant and add siteHolderAttach data generation logic; enhance row generation and loading process
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user