dbTalk Databases Forums  

How to design a large DB?

microsoft.public.sqlserver.datawarehouse microsoft.public.sqlserver.datawarehouse


Discuss How to design a large DB? in the microsoft.public.sqlserver.datawarehouse forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kevin
 
Posts: n/a

Default How to design a large DB? - 03-12-2005 , 07:08 PM






Hi All,

I'm trying to design a large DB and considering which direction to go.
The planned login user accounts will be 10,000, and each user has 15 DB
Tables. Each Table's structure similar to other users, but user's data
records have no relation with each other.

1. Create 1 Database for all users, and an User_Login Table containing
User_ID, and 15 other Tables each containing the related User_ID.
This has 15 + 1 Tables in 1 Database, but each Table could be huge (10,000 X
each user's data record).

2. Create 1 Database for each user.
This is easier to manage each user, but there'll be 10,000 Databases.

3. Create 1 Database for all users, and 15 Tables for each user.
This could result a DB of 15 X 10,000 Tables.

I also have to consider how to manage each user's data, i.e, backup, limit
size, delete outdated records ...
Please enlighten me how to design such a DB. Is there an optimalized
structure for both programming and management?


Best regards,
Kevin




Reply With Quote
  #2  
Old   
Jéjé
 
Posts: n/a

Default Re: How to design a large DB? - 03-13-2005 , 10:21 AM






What's appends during upgrades or changes in the schema? Does your 10 000
clients must be updated at the same time?

What about the volume? does each client use 1mb or 1gb of data?

Maybe you can mix the solution...
Some tables can be shared while other tables are unique by user (specially
the fact table)

Big shared tables impact the query performance. allways filtering with the
UserId will degrade the performance on the biggest tables.

Unfortunatly you can't use partioned views, because there is a limitation of
256 tables in 1 view.

"Kevin" <Kevin (AT) NoSpam (DOT) home.nl> wrote

Quote:
Hi All,

I'm trying to design a large DB and considering which direction to go.
The planned login user accounts will be 10,000, and each user has 15 DB
Tables. Each Table's structure similar to other users, but user's data
records have no relation with each other.

1. Create 1 Database for all users, and an User_Login Table containing
User_ID, and 15 other Tables each containing the related User_ID.
This has 15 + 1 Tables in 1 Database, but each Table could be huge (10,000
X
each user's data record).

2. Create 1 Database for each user.
This is easier to manage each user, but there'll be 10,000 Databases.

3. Create 1 Database for all users, and 15 Tables for each user.
This could result a DB of 15 X 10,000 Tables.

I also have to consider how to manage each user's data, i.e, backup, limit
size, delete outdated records ...
Please enlighten me how to design such a DB. Is there an optimalized
structure for both programming and management?


Best regards,
Kevin






Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.