Skip to content

Commit

Permalink
reduce the number of codes in the seed table
Browse files Browse the repository at this point in the history
  • Loading branch information
joshghent committed Oct 8, 2024
1 parent 1cedb8d commit 1f13914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/seed/seed.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func main() {
log.Fatalf("Failed to insert into batches: %v\n", err)
}

for i := 0; i < 100000; i++ {
for i := 0; i < 100; i++ {
_, err = db.Exec(`
INSERT INTO codes (code, batch_id, client_id) VALUES ($1, $2, $3)
ON CONFLICT DO NOTHING;
Expand Down

0 comments on commit 1f13914

Please sign in to comment.