I?ve recently done a quick scalability test with MySQL 5.0 and 5.1 to check the new auto-inc patch with InnoDB and to see how MySQL 5.1 scales with InnoDB:
New in MySQL 5.1: innodb_autoinc_lock_mode = 1
(?consecutive? lock mode)
With this lock mode, ?simple inserts? (only) use a new locking
model where a light-weight mutex is used during the allocation of
auto-increment values, and no AUTO-INC table-level lock is used,
unless an AUTO-INC lock is held by another transaction. If
another transaction does hold an AUTO-INC lock, a ?simple insert?
waits for the AUTO-INC lock, as if it too were a ?bulk
insert.?
http://dev.mysql.com/doc/refman/5.1/en/innodb-auto-increment-handling.html#innodb-auto-increment-configurable
This fixes the …