Slashdot Log In
Facebook Goes To 64 Bit User IDs
Posted by
Zonk
on Sat Oct 20, 2007 10:34 PM
from the internet-users-on-mars-or-europa-can-expect-to-sign-up-soon dept.
from the internet-users-on-mars-or-europa-can-expect-to-sign-up-soon dept.
NewsCloud writes "Facebook has announced to developers that they are moving to a 64 bit user ID in November. At 32 bits, the current ID allows nearly 4.3 billion user accounts. Yet, despite having only 47 million users today, Facebook's move to 64 bits will allow it to have more than 18 quintillion (18,446,744,074,000,000,000) user accounts. Of course, there are currently only about 6.5 billion people in the world. Is Facebook setting their sights beyond Earth or just trying to avoid what happened when Slashdot ran out of space for comment IDs last year. Perhaps they are planning to implement personas."
Related Stories
[+]
News: Slashdot Posting Bug Infuriates Haggard Admins 262 comments
Last night we crossed over 16,777,216 comments in the database. The wise amongst you might note that this number is 2^24, or in MySQLese an unsigned mediumint. Unfortunately, like 5 years ago we changed our primary keys in the comment table to unsigned int (32 bits, or 4.1 billion) but neglected to change the index that handles parents. We're awesome! Fixing is a simple ALTER TABLE statement... but on a table that is 16 million rows long, our system will take 3+ hours to do it, during which time there can be no posting. So today, we're disabling threading and will enable it again later tonight. Sorry for the inconvenience. We shall flog ourselves appropriately. Update: 11/10 12:52 GMT by J : It's fixed.
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
Reminds me of a Facebook group (Score:5, Funny)
Re: (Score:3, Funny)
Obviously that group number wasn't computed using Excel.
Re: (Score:3, Insightful)
Network ID (Score:3, Informative)
For my user ID the network ID takes up the first 6 digits
Although I have heard that they stopped this practice and are just assigning IDs
Re: (Score:3, Insightful)
And why we are on the topic of ID's, why are Microsoft product ID's so damned long? They use letters, which gives them 35-base number set (including the digits, exclu
link to slashdot's comment id problem (Score:4, Informative)
You can get to the referenced article at:
http://meta.slashdot.org/article.pl?sid=06/11/09/1534204 [slashdot.org]
Facebook loners rejoice! (Score:5, Funny)
Re:Facebook loners rejoice! (Score:5, Funny)
Parent
Population growth (Score:4, Funny)
thank god (Score:5, Funny)
staphylococcus aureus #19392133943904 is in a relationship with staphylococcus caprae #93939394839483934
Re:thank god (Score:5, Funny)
Parent
Re:thank god (Score:5, Funny)
Parent
News? (Score:5, Insightful)
So basically facebook changed there maximum users from a huge number to an even bigger number.
Are we going to post a news story everytime google adds to their storage system?
or microsoft adds another bloated line of code?
or everytime the telco's build a tower?
It's funny. Laugh. (Score:5, Informative)
The difference being that the current (huge) number was not quite sufficient to register all human beings on the planet, so we have to wonder why they did this. 32-bit integers are kind of the default, so most people wouldn't worry about it. So why are they doing this?
If you look, this article is filed under "It's funny. Laugh." And it is, really. Either Facebook is doing this for no good reason, or someone actually has some justification for going to the time and expense to change their database in this way. And so... Are they really planning on registering more human beings that exist?
I realize it's not funny to you now, as you've had to have the joke explained to you...
If they suddenly went from 2 gigs of email to 5 exabytes, then yes.
Also, keep in mind that Slashdot did cover when Gmail was first released with that 2 gigs, which seemed impossibly huge, and was at least one or two orders of magnitude larger than their closest competitor.
Parent
It's not User IDs. (Score:3, Informative)
Re: (Score:2)
~the people who come up with repetitive slashdot stories
Re: (Score:2)
Re: (Score:2)
I seem to remember an article poking fun at the fact google's email space isn't "infinite" like some other services so if they doubled or tripled their limit I guess it would be on the front page.
Windows Vista articles?
articles about the irrational fear of wifi and the "dangers" of cell phone towers, I believe we've seen that too. so yes, t
Re: (Score:3, Informative)
Are we going to post a news story everytime google adds to their storage system?
Answer: Why yes, I believe they will.
Re:News? (Score:5, Funny)
Parent
Re: (Score:2, Funny)
Two-Faced (Score:5, Funny)
i for one. (Score:2, Funny)
Not just user IDs (Score:5, Interesting)
Re: (Score:2, Informative)
Re: (Score:2)
Up until this point, all of our user IDs have been small enough that 32 bits is sufficient to store them all. In the not-so-distant future, we will begin using 64 bit object IDs in some places. So, the numbers will become to big to handle in some situations
Seems pretty clear:
1. User IDs are currently 32 bits.
2. They are changing some object IDs to 64 bits.
It does not say they are changing user IDs to 64 bits. It's implied but not stated. It's not actually clear that "user ID" means the ID of an account - it might just mean a user-visible ID (such as comments have on Slashdot).
Re:Not just user IDs (Score:4, Insightful)
Parent
No Reuse... (Score:2)
32 bit constraint kind of forces a big leap (Score:5, Informative)
If you think you might ever have more than 2^32 of something, you kind of have to go to 2^64. Yes. It's an obscene ammount of possibilities; but it's the next biggest size. You really don't have much of a choice here. You could implement 5-byte numbers, but it'd be a PiTA. No CPUs have native 5-byte ints. The progression has always been a doubling of int size.
If that doesn't make sense, you shouldn't be on Slashdot. Maybe you should be someplace else... like Facebook maybe?
Re: (Score:2)
Ah, no, it isn't. Just as an example, right off the top of my head, they could go from 32 bits to 34 bits, giving them an extra 12,884,901,888 ids. Or 2 for every person on the planet.
Or they could round it off at a nice 40, for a healthy 1,099,511,627,776 -- roughly a trillion users.
There is absolutely no rule that says "need bigger than 32 bit -- must choose 64 bit".
Re: (Score:2)
Re: (Score:2)
Spammers (Score:2, Funny)
Re:Spammers (Score:4, Funny)
Parent
Overflow (Score:2)
Number of People (Score:5, Insightful)
I can see a few reasons (Score:5, Insightful)
* 64-bit user IDs are easier to partition. They could be using the top N bits as a database ID.
* They may want to allocate the IDs randomly instead of sequentially. 64-bit IDs would involve fewer collisions.
* We don't know what their account churn rate is; if people sign up, forget, and create new accounts again frequently, they could have many more than 47 million dormant accounts sitting around.
A 32-bit ID really does get cramped when you have a large user base.
I guess they believed the hype (Score:4, Funny)
security? (Score:2)
but... (Score:2, Funny)
Ha ha, but seriously. (Score:5, Informative)
Duplicate Users (Score:2)
Not actually what they said (Score:2, Informative)
People make... (Score:2)
This is the dumbest article... (Score:3, Funny)
So they changed the column type of userId from INT32 to INT64. Who gives a fuck? It would be much less expensive for Slashdot to simply post SQL change logs than to have editors on the clock.
We need the ability to mod stories, so that the editors can more clearly see when they aren't doing their job.
In other news... (Score:5, Funny)
Re: (Score:3, Insightful)
ie, "I will definitely call my mom about this."
My guess: Security, segementation, multiple log in (Score:3, Interesting)
-It can make things easier to have your user groups organized according to geographic location, company issuing th id (e.g. local branch), etc.
-Multiple log ins. Who knows. maybe it is easier to associate internally several uids with each uid (could make things more static).
So let's say:
10 bit for segmentation
20 for checksumming
4 for multiple logins
leaves only 29 bit as payload
Or somebody was just dumb and wanted to make sure he is not fired until all applicaitons are switched
Re: (Score:2)
Re: (Score:2)
LOL. Our guys send out typo riddled notices all the time. They need more console love, an AIX terminal is very unforgiving of typos...oh crap I just brought a ton of sites down, I meant status, not stop!