Skip to content

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
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