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 > Big Database vs Multiple small databases

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-21-10, 22:45
epaulk epaulk is offline
Registered User
 
Join Date: Jul 2010
Posts: 2
Big Database vs Multiple small databases

Hi Guys!

I´m beginning the development of a new project and it will be a WEB application in ASP.NET, so I probably will use MS SQL.

The information stored on the database will be access from many different locations BUT it need to keep it separated for each location. In other words, each location only can access their records. Each location potentially will generate millions of records and will be thousands of locations.

This is my question:

In your opinion, what is better/practical/easy to maintain?

One Huge database, with security (o simple queries) to filter the data for each location

Or

One database for each location

My concern is performance, but also how easy to maintaining will be.

For example: I’m afraid of making modifications to a table then need to replicate it to thousands of databases, in that case one database is more practical.

At this moment I´m not worry (yet) about infrastructure, servers, replication and that kind of stuff.

Thanks in Advance!

Edgar
Reply With Quote
  #2 (permalink)  
Old 07-22-10, 01:32
dportas dportas is offline
Registered User
 
Join Date: Dec 2007
Location: London, UK
Posts: 732
One database and one set of tables is definitely easier to maintain. It should also be much easier to implement the security you want if you have all the data in one place.

The main reason to have more than one database would be if you have very different availability or backup requirements or if you want to split the data over multiple servers. Otherwise put everything in one place.
Reply With Quote
  #3 (permalink)  
Old 07-22-10, 10:18
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
"Put all your eggs in one basket. And then, watch that basket!" -Mark Twain
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #4 (permalink)  
Old 07-22-10, 11:16
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
hey what's up with this? you guys are agreeing on something???? )
Reply With Quote
  #5 (permalink)  
Old 07-22-10, 11:24
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
Don't worry - I know what to do:
Use natural keys and make location the lead column of your clustered primary keys.
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
  #6 (permalink)  
Old 07-27-10, 04:26
epaulk epaulk is offline
Registered User
 
Join Date: Jul 2010
Posts: 2
Thank Guys! this was very helpfull!
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