Multiple databases

This is a discussion on Multiple databases within the sqlserver-datamining forums in Data Warehousing category; Hi, What is the best way -- performance wise -- to handle data from multiple databases if each database has several million records in a few tables. One option is to create a single database and append all the records from individual databases to that database. The other option is to create views that span multiple databases. Which option will give me better performance -- everthing else being equal i.e. same server, same network, etc. Thanks, Chuck...

Go Back   Database Forum > Data Warehousing > sqlserver-datamining

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-08-2008, 03:50 PM
Default Multiple databases

Hi,

What is the best way -- performance wise -- to handle data from multiple
databases if each database has several million records in a few tables.

One option is to create a single database and append all the records from
individual databases to that database. The other option is to create views
that span multiple databases. Which option will give me better performance --
everthing else being equal i.e. same server, same network, etc.

Thanks,

Chuck
Reply With Quote
  #2  
Old 07-10-2008, 03:37 PM
Default RE: Multiple databases

Are you talking about unionizing several partitioned tables or just joining
tables?
A view would potentially improve performance, if it were an indexed view,
but indexed views can't span databases.
If the tables are contained in seperate file groups on seperate disks
(whether they be in the same database or seperate databases), then you will
potentially benefit from parallel I/O. Rather than changing the logical
schema of your databases, first try placing each Database filegroup on seperate
disks and see if that improves things.

"Chuck" wrote:

> Hi,
>
> What is the best way -- performance wise -- to handle data from multiple
> databases if each database has several million records in a few tables.
>
> One option is to create a single database and append all the records from
> individual databases to that database. The other option is to create views
> that span multiple databases. Which option will give me better performance --
> everthing else being equal i.e. same server, same network, etc.
>
> Thanks,
>
> Chuck

Reply With Quote
  #3  
Old 07-11-2008, 11:16 AM
Default RE: Multiple databases

Eric,

Thanks for your response. Yes, these are separate databases that reside on
the same disk. They are data packages.

I guess the main thing that I'm trying to get to is whether it's a better
idea to import the data into a single database or try to access the data from
separate databases which contain data for different time frames.

Thanks again for your help.

"Eric Russell" wrote:

> Are you talking about unionizing several partitioned tables or just joining
> tables?
> A view would potentially improve performance, if it were an indexed view,
> but indexed views can't span databases.
> If the tables are contained in seperate file groups on seperate disks
> (whether they be in the same database or seperate databases), then you will
> potentially benefit from parallel I/O. Rather than changing the logical
> schema of your databases, first try placing each Database filegroup on seperate
> disks and see if that improves things.
>
> "Chuck" wrote:
>
> > Hi,
> >
> > What is the best way -- performance wise -- to handle data from multiple
> > databases if each database has several million records in a few tables.
> >
> > One option is to create a single database and append all the records from
> > individual databases to that database. The other option is to create views
> > that span multiple databases. Which option will give me better performance --
> > everthing else being equal i.e. same server, same network, etc.
> >
> > Thanks,
> >
> > Chuck

Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 03:07 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.