Do AUTO_INCREMENTS have to be sequential?
-
We have converted several tables in MySQL to InnoDB for performance reasons. (Note to others, not saying this will suit your environment, it just does for us).
Question: will setting innodb_autoinc_lock_mode=2 cause problems? To put it another way, do AUTO_INCREMENT values need to be guaranteed and sequential, or if one is missing, will it matter?
Bit more info: This will not perform a table lock when doing an INSERT… ON DUPLICATE KEY, and therefore auto-increment values can not be guanateed when the SQL query is made. It’s rare it’s needed, but just want to make sure.
Thanks
[Mod: Moved to WP-Advanced]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Do AUTO_INCREMENTS have to be sequential?’ is closed to new replies.