Joined: Sat Oct 16, 2004 10:51 pm Posts: 14534 Location: Mesa,AZ
Right now, GD has over 733,890 posts.
The field in the database that stores the number of posts can only store integers up to 16,777,216. So on the 16,777,217th post, the number of posts in GD will roll over to 0.
Any bets on when this will happen? We're already 4.4% of the way there!
_________________
John Adams wrote:
In my many years I have come to a conclusion that one useless man is a shame, two is a law firm, and three or more is a congress.
Joined: Sat Oct 16, 2004 10:51 pm Posts: 14534 Location: Mesa,AZ
BadMusic wrote:
will it really roll over ? won't you just get a duplicate entry for key sort of error ?
Actually, it looks like mysql will prevent overflow by simply storing the largest possible value... So it would just cap off if you try to enter a number too big for the database.
If the integer size is set up to be smaller than that in PHP, though, it might still roll over since the actual calculation is probably made in the script. I'll have to find out with the integer size is set for on the server.
_________________
John Adams wrote:
In my many years I have come to a conclusion that one useless man is a shame, two is a law firm, and three or more is a congress.
will it really roll over ? won't you just get a duplicate entry for key sort of error ?
Actually, it looks like mysql will prevent overflow by simply storing the largest possible value... So it would just cap off if you try to enter a number too big for the database.
If the integer size is set up to be smaller than that in PHP, though, it might still roll over since the actual calculation is probably made in the script. I'll have to find out with the integer size is set for on the server.
if your database field for the post count integer is set to MEDIUMINT, check if the board software allows you to change the field type to BIGINT.
Or for the sake of seeing how the database would handle such a roll over, it would be kind of experimentally fun to leave the default (if it is the default) field type as is.
Users browsing this forum: No registered users and 7 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum