MySQL Bulk Inserts – Performance Measurement

14 Feb

I had always wanted to test the performance of MySQL’s bulk inserts and finally got a chance to do so – I was pretty surprised at the results.

I basically ran the same insertion – of 10,000 rows – on an Amazon EC2 instance by appending a few of them together to be bulk inserted and calculated the time it took for the complete 10,000 row insertion to complete.

And this was what it looked like – at 50 combined inserts, the 10,000 rows were added in slightly over a second. 

Image

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: