main
Bel LaPointe 2025-12-08 16:17:05 -07:00
parent 72a63afdee
commit 8b748280a9
1 changed files with 4 additions and 1 deletions

View File

@ -57,7 +57,10 @@ func run(ctx context.Context) error {
// https://gist.github.com/ololobus/5b25c432f208d7eb31051a5f238dffff
// 2e6=1GB, so 2e6/8=12MB
for i := presently() / 12; i < (*n)/12; i++ {
for {
if presently() >= *n {
break
}
for ctx.Err() == nil {
if _, err := pg.ExecContext(ctx, `
INSERT INTO fill_with_data (x, y, z)