If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Just out of curiousity

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-20-03, 15:48
kenicheema kenicheema is offline
Registered User
 
Join Date: Dec 2003
Posts: 3
Just out of curiousity

Hi all,
Just out of curiousity, what would be the ideal structure for Friendster.com's database?
Here are two structures that I came up with. Which one do you think is a better design? Could there be another way that is better?

Structure A:
(signle DB with multiple tables)
******************************************
Database: FriendsterDB
Tables:
Login(Username, Password, ...)
Member_Profile(Username, First_Name, Last_Name, Email, ...)
Member_x_Friend(Username, ...)
...


Structure B:
(Each user has his own DB)
******************************************
Database: General
Tables:
Login(Username, Password), ...
...
Databse: Member_x
Tables:
Profile(Username, First_Name, Last_Name, ...)
Friend(Username, ...)
...



With structure A, each table would be very big because Friendster has over 1,000,000 members. Structure B, however, results in small tables but a large number of DB. 1,000,000 members will result in 1,000,000 DB.

With so many users, I wonder which is the best way to design Friendster's DB. It would be even more interesting to know the actual structure of their DB.
Reply With Quote
  #2 (permalink)  
Old 12-20-03, 18:33
certus certus is offline
Registered User
 
Join Date: Dec 2003
Location: Canada
Posts: 710
The choice of A is simpler as you are dealing with millions of rows as opposed to millions of database objects. The overhead of the first is phenomenally simpler than the overhead of the latter.

A million records is nothing.

The novelty of friendster is in the concept that created the data model.
__________________
visit: relationary

Last edited by certus; 12-20-03 at 18:55.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On