[wp-hackers] Maximum # of users
Robin Adrianse
shorty114 at shorty114.net
Wed Jan 31 00:44:55 GMT 2007
It would make sense, IMO, to shrink the database column type, as PHP and
more likely the host operating system would have a limit on integer size.
On 1/30/07, Charles Hooper <charles.hooper at sub.st> wrote:
>
> What's the maximum number of users Wordpress intends to support? User
> IDs in wp_users are stored as BIGINT(20), however while messing about
> with the caching functions I noticed that get_userdata() casts the
> supplied ID to an integer, making ~2 billion the maximum number of users
> possible that Wordpress can handle.
>
> While I don't see anyone ever reaching 2 billion users, I actually see
> this as causing problems if anyone were to ever have more than the max #
> of users signed up. Looking at the code it appears that those users
> having greater than the maximum amount would be locked out.
>
> If the ~2 billion is enough, would it make more sense to reduce that
> column size? Leave it alone? Or get rid of the cast to integer in
> get_userdata() ?
>
> --
> Charles Hooper
> http://sub.st/
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list