Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old November 7th, 2003, 01:38 AM
jpreed00 jpreed00 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 20 jpreed00 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
many tables vs one table

Alrighty, for you database optimization junkies out there, I am running Win 2k Server and Win 2k Enterprise MSSQL Server.

I am undecided as to the best course of action to pursue for an application I am writing.

The application would need to store a massive amount of data for each user.

A) I could write it such that, for each user, it would create a user specific table, and use that table for all data transactions for the user. This would optimize searching, joining and selecting, however, there is an upper limit on the number of tables that can be used in addition to the extra storage space and table loads required by the server. This would increase paging as tables would have to be dismissed from memory and then reloaded, etc. Server performance could suffer tremendously if the server was very active.

B) I could write it such that there is a table general enough for all users to use, and would keep them seperate programmitcally using USERIDs or some other such unique identifier. However, this would provide the easiest interface, have the lowest impact on storage space, but it, too, would present memory issues as the table grew too large to keep in memory all at once. Searching, joining and selecting performance would also suffer as the table grew.

Does anyone have pros/cons for either A or B that I haven't thought about? I'm leaning towards A, because I believe if the server runs out of namespace for new tables, I can convince the client to spring for an additional server (or branch off into different databases, depending on server strain)--I mean they're not THAT stingy...

Reply With Quote
  #2  
Old November 7th, 2003, 01:55 AM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: many tables vs one table

Option B is the way to go...having a table for each user would be a nightmare to adminster. My company has a DB with over 70K users and we do not experience excessive server load or memory usage. MSSQL was designed for relational databases, not single "flat file" databases, so I would use it as such.

Just my two cents

Reply With Quote
  #3  
Old November 7th, 2003, 03:33 AM
jpreed00 jpreed00 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 20 jpreed00 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: many tables vs one table

Thanks. That's what I wanted to know.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > many tables vs one table


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway