Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 584655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:55:15+00:00 2026-05-13T14:55:15+00:00

Facebook’s user id’s go up to 2^32 .. which by my count it 4294967296.

  • 0

Facebook’s user id’s go up to 2^32 .. which by my count it 4294967296.

mySQL’s unsigned int’s range is 0 to 4294967295 (which is 1 short – or my math is wrong)
and its unsigned big int’s range is 0 to 18446744073709551615

int = 4 bytes, bigint = 8 bytes

OR

Do I store it as a string?

varchar(10) = ? bytes

How will it effect efficiency, I heard that mysql handle’s numbers far better than strings (performance wise). So what do you guys recommend

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:55:16+00:00Added an answer on May 13, 2026 at 2:55 pm

    Because Facebook assigns the IDs, and not you, you must use BIGINTs.

    Facebook does not assign the IDs sequentially, and I suspect they have some regime for assigning numbers.

    I recently fixed exactly this bug, so it is a real problem.

    I would make it UNSIGNED, simply because that is what it is.

    I would not use a string. That makes comparisons painful and your indexes clunkier than they need to be.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Facebook graph API tells me I can get a profile picture of a user
Facebook has officially launched its Facebook Questions. Does anyone know if it's possible to
Facebook recently added photo-tagging capabilities to its Graph API: http://developers.facebook.com/blog/post/509/ I am using FbConnect
Facebook uses a button called Login with Facebook to authenticate a user or other
Facebook has the ability to select multiple images in the file browser in its
Facebook Connect seems like the cool new way to leverage a user's Facebook account
Facebook Connect allows for very limited communication and access to the user's information. When
Facebook has a nice scroll effect which I would like to replicate with jQuery.
Facebook Connect uses JS/CSS overlays/popups for user interaction. I have sites with Flash elements,
Facebook is seemingly blocking any image that I reference which is backed by a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.