How to structured, work and maintain MYSQL databases in facebook

facebook has about 500 million active user mean facebook maintain large information in their databases.
i want to know that:first question-----------

 how they structured their database?
it logged in any user in just a second ( they take less time then other social network like orkut etc.)

second question-----------
i have a database table which has some coloms like id, username password, email etc.
now i have only 55 registered users (55 entries)
i want to know that what will happen if i have 100 million entries in same table?
will it work fine?
Who is Participating?
mankowitzConnect With a Mentor Commented:
For a database to run quickly, you want to put as much of the database into memory as possible. Facebook uses memcached ( Also remember that Facebook has an estimated 60,000 servers, so by the time you have 100 million users, you will probably need to buy some more hardware. To integrate memcached with mysql, see
Neil RussellTechnical Development LeadCommented:
this depends an aweful lot on the physical servers as well as the database design. you will probably not be able to afford the same kind of ultra highend clustered database servers that facebook use. speed of access is as much about the physical as it is about the design.
If you database server has 32GB of memory available for caching memory tables then its going to perform a bit quicker that it would on your 4gb xp desktop.
savsoftAuthor Commented:
is facebook use dedicated server or their own?
Neil RussellTechnical Development LeadCommented:
Of course! Its a multi million pund business now you think they hire a bit of space off someone else :p
Neil RussellTechnical Development LeadCommented:
As they say in the news industry....
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.