MySQL Forums
Forum List  »  General

Re: Bulk Insert Prepared Statement
Posted by: Rick James
Date: June 16, 2009 09:53PM

The performance difference between 100 and 1000 rows at a time is not much.

Empirically, inserting 1000 rows
1 at a time: 1000*(10+1) = 11,000 units of time
10 at a time: 100*(10+10) = 2,000
100 at a time: 10*(10+100) = 1,100
1000 at a time: 1*(10+1000) = 1,010
(The "10" is an estimate of the overhead of the network and parsing the query.)
So, based on this estimate, 1000 rows at a time is only 9% faster than 100 rows at a time.

Options: ReplyQuote


Subject
Written By
Posted
Re: Bulk Insert Prepared Statement
June 16, 2009 09:53PM


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.