dbTalk Databases Forums  

Temporary tables vs Flat Files for intermediate steps

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Temporary tables vs Flat Files for intermediate steps in the microsoft.public.sqlserver.dts forum.



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

Default Temporary tables vs Flat Files for intermediate steps - 04-04-2006 , 09:42 AM






Hi,

I have a fundamental question to ask. I have to populate 7 new data
marts (Fact tables and non-shared dimensions) from our enterprise
datawarehouse (EDW). So I have to import data from EDW, calculate
measures and retreive dimension ids. The fact tables will have many
rows and will be updated monthly (monthly snapshot). I'm using DTS to
Extract-Transfert-Load the data. Our EDW has several tables with high
volume (up to 140 M of rows for the largest table, around 800 GB of
data for the overall database). To reduce the complexity and enhance
the overall performance, as it is recommended, I will break up complex
data load and transformation processes into multiple steps that uses
temporary tables.

Currently, there is 2 datamarts in production (developped 2 years ago).
These 2 datamarts use also DTS to ETL the tables, but they use flat
files instead of temporary tables to store and process data in the
intermediate steps.

I would like to know if there is a "performance" best practice to use
flat files instead of temporary tables? Does anybody has experimented
both procedures???

Thanks


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Temporary tables vs Flat Files for intermediate steps - 04-04-2006 , 02:06 PM






Hello endt,

Chances are if this was a "more than once" operation and it sounds like it
is I would be making these temp tables permanent tables.
Now the issue comes with which is quicker.

Have a read of this

http://www.sql-server-performance.co...emp_tables.asp

Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Hi,

I have a fundamental question to ask. I have to populate 7 new data
marts (Fact tables and non-shared dimensions) from our enterprise
datawarehouse (EDW). So I have to import data from EDW, calculate
measures and retreive dimension ids. The fact tables will have many
rows and will be updated monthly (monthly snapshot). I'm using DTS to
Extract-Transfert-Load the data. Our EDW has several tables with high
volume (up to 140 M of rows for the largest table, around 800 GB of
data for the overall database). To reduce the complexity and enhance
the overall performance, as it is recommended, I will break up complex
data load and transformation processes into multiple steps that uses
temporary tables.

Currently, there is 2 datamarts in production (developped 2 years
ago).
These 2 datamarts use also DTS to ETL the tables, but they use flat
files instead of temporary tables to store and process data in the
intermediate steps.

I would like to know if there is a "performance" best practice to use
flat files instead of temporary tables? Does anybody has experimented
both procedures???

Thanks




Reply With Quote
  #3  
Old   
endt
 
Posts: n/a

Default Re: Temporary tables vs Flat Files for intermediate steps - 04-05-2006 , 03:58 PM



Hello Alan,

Thank you for your answer. As you have suggested, I would certainly
use permanent tables instead of temporary tables in the intermediate
steps. But, I would like to know if the use of flat files to
manipulate data instead of tables in the intermediate steps could be an
option to improve performance, reduce the process time?

Thanks

Eric.


Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Temporary tables vs Flat Files for intermediate steps - 04-05-2006 , 04:17 PM



Hello endt,

I do not see that they would enhance perf any no. If you want to then manipulate
the data in the files upon extract then you are struggling when using the
text file driver as it is not flexible whereas going against a SQL Server
source is.

Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Hello Alan,

Thank you for your answer. As you have suggested, I would certainly
use permanent tables instead of temporary tables in the intermediate
steps. But, I would like to know if the use of flat files to
manipulate data instead of tables in the intermediate steps could be
an option to improve performance, reduce the process time?

Thanks

Eric.




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 - 2012, Jelsoft Enterprises Ltd.