MySQL Forums
Forum List  »  Optimizer & Parser

Re: insert multiple values from array in mysql database using c#
Posted by: Rick James
Date: April 22, 2011 09:44AM

It will be tedious in C#, but you build a "batch" insert:
"INSERT INTO pomosna(broj, prefix, ostatok)VALUES(...), (...), (...), ..."

I recommend batching 100 rows at a time. This will give you about 10x the speed; more than 100 won't add much performance.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: insert multiple values from array in mysql database using c#
2470
April 22, 2011 09:44AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.