… the lock algorithm for the auto_increment value is configurable and you can select from different algorithms using the innodb_autoinc_lock_mode….) NOT NULL AUTO_INCREMENT, `name` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniqname` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET…
Post: InnoDB auto-inc scalability fixed
… with InnoDB auto-increment field. For details check Bug 16979. In short words the problem is in case of insert into table with auto-increment column the special AUTO_INC table level lock is obtained, instead of usual row-level locks. With many concurrent…
Post: MySQL Users Conference - Innodb
… separately. Improved Auto Increment handling Yet another known Innodb problem is table locks which are taken for statement duration for Inserts with auto-increment column. This… values at once when statement is started instead of handling auto increment lock for full statement duration. The problem with multi value inserts…
Post: Sharing an auto_increment value across multiple MySQL tables
…_id: CREATE TABLE option1 (id int not null primary key auto_increment) engine=innodb; # each insert does one operations to get the value… better described as waiting on a lock. Option #2 will likely scale better in auto_commit, since locks are held for the duration… you have already started modifying data before you need an auto_increment number but you do not want to commit yet. Full…
Post: Thinking about running OPTIMIZE on your Innodb Table ? Stop!
…(10) unsigned NOT NULL AUTO_INCREMENT, `c` char(64) DEFAULT NULL, PRIMARY KEY (`id`), KEY `c` (`c`) ) ENGINE=InnoDB AUTO_INCREMENT=12582913 DEFAULT CHARSET=latin1… some time. Note though nothing stops you from using LOCK TABLES on Innodb table to ensure there is not ton of queries…
Post: Improved InnoDB fast index creation
…| 0.000004 | | init | 0.000008 | | Opening tables | 0.000118 | | System lock | 0.000007 | | setup | 0.000027 | | creating table | 0.002255 | | …dump would actually make the restore slower; mysqldump –innodb-optimize-keys ignores indexes on AUTO_INCREMENT columns, because they must be indexed, so…
Post: Drilling down to the source of the problem
… SHOW INNODB STATUS showed as waiting on famous Innodb AUTO-INC lock. That would be an easy excuse to blame everything on this lock, suggest… inserts to table with auto increment were stalling but also inserts to the tables which did not have auto-increment columns and general updates. The stall was not caused by row level locks too. Taking a closer look at Innodb flush…
Post: MyISAM Scalability and Innodb, Falcon Benchmarks
…, PRIMARY KEY (`id`), KEY `val` (`val`) ) ENGINE=MyISAM AUTO_INCREMENT=4097 Table t1 contains about 260,000 records,… key cache locking was done so disk IO is not done while lock is held, while lock is still… with 4 Cores. Here is comparison of MyISAM Innodb and Falcon results in the graphical form: I…
Post: How much memory Innodb locks really take ?
… with a bit of background – in Innodb row level locks are implemented by having special lock table, located in the buffer pool where…(10) unsigned NOT NULL auto_increment, `j` varchar(255) default NULL, PRIMARY KEY (`i`), KEY `j` (`j`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 mysql… Max_data_length: 0 Index_length: 128974848 Data_free: 0 Auto_increment: 1638401 Create_time: 2006-07-12 07:31:51 Update…

