MySQL Forums
Forum List  »  InnoDB

Re: AUTO_INCREMENT when column maximum is reached
Posted by: Peter Brawley
Date: September 04, 2020 10:28AM

If your table gets to within 1 of the limiting value for an auto_increment column, the table is growing faster than anticipated, that's a design failure---there always needs to be ample headroom.

If your schema, its rules, or any apps using it depend on gapless auto_increment sequences, that's another design mistake. Fix that by providing your own sequencing function.

Options: ReplyQuote

Written By
Re: AUTO_INCREMENT when column maximum is reached
September 04, 2020 10:28AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.