-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batched inserts #39
Comments
Hi, I would also appreciate a feature like this. |
Hey! I have not yet found a nice way to reliably generate code for it, so I have not.
that's the beauty of this setup, i think. You can still use ormx like before for everything else, and drop down to using sqlx for that specific query. |
As far as I can tell, the only nice way of doing batch inserts is on Postgres, by binding arrays and using For example, it seems like the data needs to be "flat", every field in its own array. Not sure how to do that in the ormx API without being disgusting to use. We could accept a |
Other languages support batching queries, for example: |
Hello! Loving the library, thank you so much!
The only thing I'm missing for my use case is batched inserts. I need to ingest millions of rows into a DB as quickly as possible, and non-batched inserts would be an issue. I know sqlx supports it, so I imagine it shouldn't be that difficult to implement. I could take a crack at it myself, if you're interested - although I am not very experienced with sqlx.
What do you think? Personally, it would mean I would never have to look at other ORMs again :)
Cheers, have a great day!
The text was updated successfully, but these errors were encountered: