Why does MySQL autoincrement increase on failed inserts?
InnoDB is a transactional engine. This means that in the following scenario: Session A inserts record 1 Session B inserts record 2 Session A rolls back , there is either a possibility of a gap or session B would lock until the session A committed or rolled back. InnoDB designers (as most of the other … Read more