Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Building fact tables in a data warehouse

RE: Building fact tables in a data warehouse

From: Ken Naim <kennaim_at_gmail.com>
Date: Fri, 21 Dec 2007 15:58:09 -0500
Message-ID: <F3D2ED15146243B1B586482D8F7BEFE6@KenPC>


Almost every column in your dimension and fact table should have a single column bitmap index on which will allow for star transformation explain plan which combines all the bitmap indexes and finds the rows in the fact table very quickly.  


From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Thomas Day
Sent: Friday, December 21, 2007 10:17 AM To: oracle-l_at_freelists.org
Subject: Building fact tables in a data warehouse  

I'm just wondering if anyone has any insights on how to speed this up.  

Our fact tables consist of the primary keys of the involved dimension tables plus numeric count columns.  

To build our fact table, let's call it Z (as I understand the process) we grab the primary key of the row in dimension A plus information which

we can use to find the associated row in dimension B. We go to dimension B, grab the primary key plus information which allows us to

find the associated row in dimension C, and so on through 8 dimension tables.  

This gives us one row in the fact table.  

This worked OK for our ETL developers when we were dealing with 10,000 rows in the development database.  

Now we're working with a much larger source set and we're talking 100,000,000 rows. It doesn't work that well. Basically, each row in the fact table requires full a index scan and a rowid fetch from each of the dimension tables.  

Does anybody have experience or even a theoretical insight into a better way to do this?  

Thanks

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Dec 21 2007 - 14:58:09 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US