fix
parent
bb75883800
commit
7252c96dab
|
|
@ -54,7 +54,7 @@ func run(ctx context.Context) error {
|
||||||
|
|
||||||
// https://gist.github.com/ololobus/5b25c432f208d7eb31051a5f238dffff
|
// https://gist.github.com/ololobus/5b25c432f208d7eb31051a5f238dffff
|
||||||
// 2e6=1GB, so 2e6/8=12MB
|
// 2e6=1GB, so 2e6/8=12MB
|
||||||
for i := presently(); i < (*n)/12; i++ {
|
for i := presently() / 12; i < (*n)/12; i++ {
|
||||||
for ctx.Err() == nil {
|
for ctx.Err() == nil {
|
||||||
if _, err := pg.ExecContext(ctx, `
|
if _, err := pg.ExecContext(ctx, `
|
||||||
INSERT INTO fill_with_data (x, y, z)
|
INSERT INTO fill_with_data (x, y, z)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue