Solved

How to structured, work and maintain MYSQL databases in facebook

Posted on 2010-08-28
5
269 Views
Last Modified: 2012-05-10
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?
0
Comment
Question by:savsoft
  • 3
5 Comments
 
LVL 37

Expert Comment

by:Neil Russell
ID: 33552263
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.
 
0
 
LVL 24

Accepted Solution

by:
mankowitz earned 500 total points
ID: 33552705
For a database to run quickly, you want to put as much of the database into memory as possible. Facebook uses memcached (http://memcached.org/). 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 http://www.ipm.virginia.edu/mysqldoc5/v5man/ha-memcached.html
0
 

Author Comment

by:savsoft
ID: 33556439
is facebook use dedicated server or their own?
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 33556579
Of course! Its a multi million pund business now you think they hire a bit of space off someone else :p
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 33560229
As they say in the news industry....
READ ALL ABOUT IT :P
http://royal.pingdom.com/2010/06/18/the-software-behind-facebook/
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now