Skip to content

Use all 65535 statement parameters doing Repo.insert_all#40

Closed
borodark wants to merge 1 commit intodavydog187:mainfrom
borodark:Use-all-65535
Closed

Use all 65535 statement parameters doing Repo.insert_all#40
borodark wants to merge 1 commit intodavydog187:mainfrom
borodark:Use-all-65535

Conversation

@borodark
Copy link

Because heartbeats table has 2 fields it's possible to insert 32767 records per insert_all call.

batch_insert.(Fitness.Generator.generate_heartbeats(alex, ~D[2022-09-22]))

[{32767, nil}, {32767, nil}, {32767, nil}, {32767, nil}, {32767, nil}, {3204, nil}]

@borodark borodark changed the title Use all 65535 statemetn parameters doing for Repo.insert_all Use all 65535 statement parameters doing Repo.insert_all Oct 27, 2025
@borodark borodark closed this by deleting the head repository Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants