Results 1 to 6 of 6

Thread: mySQL max rows?

  1. #1
    Pligg Donor dollars5's Avatar
    Joined
    Dec 2006
    Posts
    1,960
    Thanks
    Received:0
    Given: 0

    Exclamation mySQL max rows?

    Hello All,

    Just was wondering what is the maximum rows allowed in mySQL DB?

    Since for each comment we create a new row, there is more possibility it would exceed the max allowed over a period of time. I have a gaming like implementation using comments, which would even count to 1 million counts within a month (just in case it takes off) and was just wondering is there any alternatives to handle such situations?

    Pls help by providing suggestions and ideas for such situation.

  2. #2
    Constant Pligger savant's Avatar
    Joined
    Apr 2006
    Posts
    1,181
    Thanks
    Received:0
    Given: 0
    in the installtables

    `comment_id` int(20) NOT NULL auto_increment,

    the int has a range of -2147483648 to 2,147,483,647

    by making it unsigned we can get 0 to 4,294,967,295 as we can't have a negative id.

    dunno why it asks for a size (20) tho.

    a big int will be 0 to 18,446,744,073,709,551,615. but will a database with that many records really possible?

  3. #3
    Pligg Developer/Admin kbeeveer46's Avatar
    Joined
    Jun 2006
    Posts
    3,215
    Thanks
    Received:1
    Given: 0
    I remember slashdot ran into this problem in the last year or so. They hit so many comments that their database hit its limit and I believe what caused it is the exact same thing Savant was talking about. They probably had over 2,147,483,647 comments (4,294,967,295 if they were using an unsigned int) and they had to make some changes to their database for their site to be able to function again.

  4. #4
    Pligg Donor dollars5's Avatar
    Joined
    Dec 2006
    Posts
    1,960
    Thanks
    Received:0
    Given: 0
    Yep, I asked this keeping slashdot problem at the end of last year.

    So if we ran into this, if we just change the type of comment_id to unsigned or big int would solve the problem or something serious is needed?

  5. #5
    Pligg Developer/Admin kbeeveer46's Avatar
    Joined
    Jun 2006
    Posts
    3,215
    Thanks
    Received:1
    Given: 0
    basically, yes. INT should be the only thing you'll ever need for quite some time.

  6. #6
    Pligg Donor dollars5's Avatar
    Joined
    Dec 2006
    Posts
    1,960
    Thanks
    Received:0
    Given: 0
    Thanks, will test to the limits and let know the results - I just wanted to be sure that if I get into troubles, I know how to get out. (Similar to knowing swimming first, instead of trying to learn after you fell into the sea )

Similar Threads

  1. Adding Textarea with many Rows to Profile
    By Jonase in forum Questions & Comments
    Replies: 0
    Last Post: 01-20-2010, 09:21 AM
  2. Mysql Help
    By channelztv in forum Questions & Comments
    Replies: 1
    Last Post: 11-28-2009, 10:52 PM
  3. pligg 9.9.5 Tables got no rows.
    By FelixJ in forum Questions & Comments
    Replies: 9
    Last Post: 05-30-2009, 04:46 PM
  4. MySQL charset and MySQL connection collation
    By pligger2 in forum Questions & Comments
    Replies: 8
    Last Post: 12-13-2008, 03:14 PM
  5. Displaying stories in rows and columns
    By tbronson in forum Questions & Comments
    Replies: 0
    Last Post: 09-23-2007, 07:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg