question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UpsertRange() MySQL Extended inserts

See original GitHub issue

Hi, 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:closed
  • Created 4 years ago
  • Comments:23 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
artiomchicommented, Jul 16, 2019

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!

0reactions
APIWTcommented, Jul 16, 2019

Thank you for sharing your experience 😃 this would be awesome as a blog post if you ever have time.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found