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 > databse design question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-02-09, 11:13
ywlee522 ywlee522 is offline
Registered User
 
Join Date: Jul 2009
Posts: 2
databse design question

I would appreciate any thoughts on the question below. Thanks.

I need to create a database for a document/note/message management system, in which there are upto 10 million users, and each generates upto 50 docs/notes/messages per day. ( similar to an email management system).

- On one end, a simple way is to have one table for user, and another huge table for docs. I am afraid that this may be slow as the table gets bigger.

- The other end, is to have one table per each user, resulting in many many tables, but the operations (select/update/insert) may be much faster.

Which would be more appropriate choice? In my system, users don't share documents (just as email users don't share their emails). Any thoughts/opinions would be of great help. Thanks
Reply With Quote
  #2 (permalink)  
Old 07-02-09, 11:30
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,516
Quote:
Originally Posted by ywlee522
Which would be more appropriate choice?
single table for users, single table for documents

your statement "I am afraid that this may be slow as the table gets bigger" suggests that you don't know about indexing

rest assured, performance will not be a problem if your tables are properly optimized (indexes created on appropriate columns)
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 07-02-09, 11:48
ywlee522 ywlee522 is offline
Registered User
 
Join Date: Jul 2009
Posts: 2
Thanks for the input.

Do you mean that even with the growth rate of 50mil record per day, the performance would not suffer with indexing?
Reply With Quote
  #4 (permalink)  
Old 07-02-09, 12:00
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,516
50 million rows per day?

you'll need to hire a database administrator to help you with splitting the database across several servers
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 07-03-09, 08:15
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Moving to Database Concepts & Design topic

Table and index partitioning should definately be considered when working with that volume of data.
__________________
George
Twitter | Blog
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