dbTalk Databases Forums  

Which my star schema models is better?

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


Discuss Which my star schema models is better? in the microsoft.public.sqlserver.datawarehouse forum.



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

Default Which my star schema models is better? - 07-04-2005 , 09:07 PM






I work in consumer goods company and now design OLAP Data Warehouse.
My OLAP tables consist of :
1. Customer - all our customer data
{CustomerID, CustomerCode}
2. Type - type of the goods
{TypeID, TypeCode}
3. Grade - quality grade of material
{GradeID, CustomerCode, TypeCode, Grade}
4. Receiving - material receiving
{ReceivingID, TruckNo, Transporter,...}

I've design 2 kind of Receiving_Fact and don't know which one is better
:
Quote:
Model 1
- Receiving_Fact
{ReceivingID, GradeID, Measures}
- Star Schema
CustomerDim & TypeDim dimension will be related to GradeDim dmension

Quote:
Model 2
- Receiving_Fact
{ReceivingID, CustomerID, TypeID, GradeID, Measures}
- Star Schema
CustomerDim & TypeDim dimension will be related to GradeID field in

Receiving_Fact

I hope my illustration could be understand well. Model 1 is like
snowflake where dimension related to other dimension. Model 2 is star
schma form which all dimensions related to fact table.

Please help me, which model is better? I'm really confused.

Thanks a lot



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

Default Re: Which my star schema models is better? - 07-04-2005 , 09:17 PM






The model 2 provide a better performance both for querying and cube process
if you have 4 dimensions created (Customer, Type, Grade, Receiving) and if
your cube is optimized, then the process time is better (not link made to
process the cube).

The model 1 is slower, but reduce the disk usage in your database.
In this case AS will always do a link between the fact table and the grade
table to process the cube. (slower)

both schemas works fine.


"Resant" <resant_v (AT) yahoo (DOT) com> wrote

Quote:
I work in consumer goods company and now design OLAP Data Warehouse.
My OLAP tables consist of :
1. Customer - all our customer data
{CustomerID, CustomerCode}
2. Type - type of the goods
{TypeID, TypeCode}
3. Grade - quality grade of material
{GradeID, CustomerCode, TypeCode, Grade}
4. Receiving - material receiving
{ReceivingID, TruckNo, Transporter,...}

I've design 2 kind of Receiving_Fact and don't know which one is better
:
Model 1
- Receiving_Fact
{ReceivingID, GradeID, Measures}
- Star Schema
CustomerDim & TypeDim dimension will be related to GradeDim dmension

Model 2
- Receiving_Fact
{ReceivingID, CustomerID, TypeID, GradeID, Measures}
- Star Schema
CustomerDim & TypeDim dimension will be related to GradeID field in

Receiving_Fact

I hope my illustration could be understand well. Model 1 is like
snowflake where dimension related to other dimension. Model 2 is star
schma form which all dimensions related to fact table.

Please help me, which model is better? I'm really confused.

Thanks a lot




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

Default Re: Which my star schema models is better? - 07-06-2005 , 09:08 PM



Thanks a lot, your answer is really help


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.