MySQL Forums
Forum List  »  InnoDB

Re: Very slow insert with Innodb
Posted by: Rick James
Date: January 05, 2009 07:08PM

Suggest setting innodb_buffer_pool_size to 70% of available RAM if you are using only InnoDB.

Well, even if you take away the auto_increment field or the PRIMARY KEY, InnoDB will still have a PRIMARY KEY. And it will do internal locking on the PK.

The PK will be (in order) chosen from this list:
1. User-stated PRIMARY KEY
2. The first UNIQUE index (with some caveat about NULLable fields)
3. A hidden BIGINT AUTO_INCREMENT -- The worst of all worlds.

Options: ReplyQuote


Subject
Views
Written By
Posted
7011
December 30, 2008 09:12PM
2920
December 30, 2008 11:01PM
2905
January 05, 2009 08:28AM
Re: Very slow insert with Innodb
2633
January 05, 2009 07:08PM
2668
January 05, 2009 11:46PM
2401
January 06, 2009 09:45PM
2864
January 07, 2009 03:37AM
2418
January 11, 2009 10:47PM
2297
January 17, 2009 09:44AM
2383
January 17, 2009 11:58PM
2712
January 18, 2009 09:09AM
2334
January 18, 2009 05:01PM


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.