fix
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user