I get spaces in my extra keys, even with
innodb_autoinc_lock_mode = 0
I isolated the problem to a single INSERT ... SELECT statement. In principle, each INSERT ... SELECT statement increases the value of the table auto_increment by one , even if the insertion (duplicate key) is not actually performed . In my case, I use INSERT IGNORE, but I tested without, and auto_increment is still erroneously increasing.
I'm worried about this because this INSERT ... SELECT statement works with a few high-frequency ones, so the keys quickly get big.
I will live with him if there is no way, but is there a way to avoid this behavior?
source
share