What is maximum records quantity a MySQL table can store?
Asked Answered
R

2

6

How many records can a MySQL MyISAM table store? How many InnoDB can?

Ruffin answered 8/10, 2010 at 12:6 Comment(1)
I think there really should be a distinction between "technically possible" and "with good performance". There is a point where performance will suffer and you need to start sharding.Amoakuh
H
10

You can't count by number of records because your table can have really short records with only a few int fields or your records might be really long with hundreds of fields.

So it has to be measured in the file size of the tables.

For MYSQL: The table size limit is based on the operating system drive file system that MySQL is installed on, ranging from 2GB to 2TB.

See the MySQL reference manual for full explanations of limits for each operating system.

Concerning InnoDb and MyIsam i do not know.

Heracliteanism answered 8/10, 2010 at 12:9 Comment(0)
E
3

From the MySQL site:

Support for large databases. We use MySQL Server with databases that contain 50 million records. We also know of users who use MySQL Server with 200,000 tables and about 5,000,000,000 rows.

The more practical limit will be the size of your key -- if your primary key is an int field, then the max number of rows will be the largest number that can be held in an int.

So if you're expecting a big table size, use bigint ... or something even bigger.

Enwreathe answered 8/10, 2010 at 12:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.