Pregunta

I have a hypothetical table with a primary key that is a BIGINT. Let's say my table grows very large and I have to partition and create different partitions by date range. What happens with primary key? Does that mean I can exceed the capacity of the BIGINT since there are more tables now? How does MySQL keep from assigning duplicate primary keys assuming a BIGINT set to auto increment a unique value?

Thanks in advance...

¿Fue útil?

Solución

Partitioning doesn't create a new table. There is still one table with many partitions. Auto increment unique value keeps it functionality. Data grouped in partitions by date field that you choose to create partitions with.

Take a look at this : http://dev.mysql.com/tech-resources/articles/mysql_55_partitioning.html

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top