1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-08-08 22:36:41 +02:00

lower geonames batch size

This commit is contained in:
Lee Brown
2019-08-21 20:33:54 -08:00
parent 515138db51
commit 5291ddd726
2 changed files with 63 additions and 6 deletions

View File

@ -294,7 +294,7 @@ func migrationList(ctx context.Context, db *sqlx.DB, log *log.Logger, isUnittest
}
//fmt.Println("Geoname records: ", len(v))
// Max argument values of Postgres is about 54460. So the batch size for bulk insert is selected 4500*12 (ncol)
batch := 4500
batch := 1000
n := len(v) / batch
//fmt.Println("Number of batch: ", n)