Solved

How to structured, work and maintain MYSQL databases in facebook

Posted on 2010-08-28
5
271 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In this installment of my SQL tidbits, I will be looking at parsing Extensible Markup Language (XML) directly passed as string parameters to MySQL 5.1.5 or higher. These would be instances where LOAD_FILE (http://dev.mysql.com/doc/refm…
All XML, All the Time; More Fun MySQL Tidbits – Dynamically Generate XML via Stored Procedure in MySQL Extensible Markup Language (XML) and database systems, a marriage we are seeing more and more of.  So the topics of parsing and manipulating XM…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

813 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

18 Experts available now in Live!

Get 1:1 Help Now