Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.