MySQL Forums
Forum List  »  Memory Storage Engine

Re: No Limits - Memory Engine
Posted by: Rick James
Date: March 20, 2013 07:19PM

> 18.3K inserts per min

Oops, I misread that as per second. That's only 300/second -- ok but not great.

Ways to speed up INSERTs:
* Batch (multiple rows on one INSERT)
* LOAD DATA
* RAID striping
* innodb_flush_log_at_trx_commit = 2 (versus = 1)
* Insert in PRIMARY KEY order
* Minimize secondary keys, especially 'random' ones

Any of those suggestions has a chance of speeding up INSERTs by 10-fold. The details vary.

Options: ReplyQuote


Subject
Views
Written By
Posted
6863
March 04, 2013 12:59AM
2630
March 04, 2013 09:28PM
2241
March 06, 2013 09:17AM
2263
March 07, 2013 11:25PM
2381
March 10, 2013 12:04PM
Re: No Limits - Memory Engine
2136
March 20, 2013 07:19PM
2228
March 18, 2013 07:38AM


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.