Jump to content

Just a question....


galvin

Recommended Posts

How many rows can a MySQL database table hold?  Is it unlimited?

 

I have a site that has approximately 1,000 entries (i.e. rows) being put into one of my MySQL tables everyday.  So this will obviously add up.  Say this keeps up for a year, I will have over 350,000 rows in that one table and counting.

 

Will performance be affected by having that many rows?  Or can MySQL handle a lot more rows than I'll ever have to worry about it?

 

Link to comment
https://forums.phpfreaks.com/topic/177729-just-a-question/
Share on other sites

The absolute image (irrespective of row size - and thus file system) is the limit of the primary key.

 

The Archive format has no primary key, consiquently you may not update records, only add and select (not sure on delete) but it presents near unlimited (if not unlimited) file storage.

 

Also MySQL does split files when they get too large, there is an option for it in the mysql gui tools administrator, but it only apears when it is connected to localhost. (not me being weird, its the server variable page, where you set its starting parameters)

 

if you have a primary key of an integer, i belive the limit is 65365 rows.... i'm really not sure.

 

but the hard limit is the maxium value of the primary key.

 

Hope i helped, pretty sure its all on the MySQL website, just google "mysql integer" or something.

 

if you need something really big and intger

 

use the type bigint its like twice the size (has a 20 in brackets, does that mean 2^20 or 20 digits?)

 

mediumint bout half of integer

tinyint ... really small.

 

 

Goodluck.

Link to comment
https://forums.phpfreaks.com/topic/177729-just-a-question/#findComment-938443
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.