What if I need a very very big autoincrement ID?

Artist Kampong picture Artist Kampong · Apr 23, 2011 · Viewed 11.2k times · Source

According to the MySQL website, the signed bigint can go up to 18446744073709551615. What if I need a number bigger than that for the auto-incrementing primary key?

Answer

9000 picture 9000 · Apr 23, 2011

If you insert 1 million records per second 24x7, it will take 584542 years to reach the limit.

I hope by then a next version of MySQL will support bigger ID columns :)