UpsertRange() MySQL Extended inserts
See original GitHub issueHi, would it be possible to make Extended Inserts instead of regular separated inserts for UpsertRange()
method ? Check about that here https://medium.com/@benmorel/high-speed-inserts-with-mysql-9d3dcd76f723
Extended inserts
A typical SQL INSERT statement looks like:
INSERT INTO user (id, name) VALUES (1, 'Ben');
An extended INSERT groups several records into a single query:INSERT INTO user (id, name) VALUES (1, 'Ben'), (2, 'Bob');
It will be much faster. Thx.
Issue Analytics
- State:
- Created 4 years ago
- Comments:23 (13 by maintainers)
Top Results From Across the Web
mysqldump usage with --extended-insert option
The problem in here is that mysql engine after executing mysqldump command will buffer all the tables in RAM, and after this is...
Read more >mysql - Are there any risks on using 'single-transaction' and ...
1 Answer 1 · Server does not need to perform fsync() multiple times during data import. · Extended insert enables sequential write to...
Read more >4.5.4 mysqldump — A Database Backup Program
Use complete INSERT statements that include column names. --create-options. Include all MySQL-specific table options in the CREATE TABLE statements. -- ...
Read more >On duplicate key ignore sql. Your insert statement would the
In MySQL, if you specify ON DUPLICATE KEY UPDATE and a row is inserted that would cause a duplicate value in a UNIQUE...
Read more >Updaterange entity framework. Media. Very generic ...
Run () you can just insert entities without handing duplicate errors or doing ... Here is code that I used: Long time no...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @PayteR
This is incredible, and very interesting… I’m going to talk to one of my colleagues that’s working on bulk inserting data into MySql and share your findings with him. He might be able to optimise our solution further.
Thank you very much for sharing this!
Thank you for sharing your experience 😃 this would be awesome as a blog post if you ever have time.