dbTalk Databases Forums  

Dimension Lookup table - good design?

comp.databases.olap comp.databases.olap


Discuss Dimension Lookup table - good design? in the comp.databases.olap forum.



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

Default Dimension Lookup table - good design? - 01-22-2004 , 09:32 AM






Any comments on the following design in terms of performance for a SQL
Server 2000 / BusObjects datawarehouse:

I have a Property dimension, and there are many many (50 or so)
categories of attributes of the property, such as "Garden", "Heating",
"Registered Rent", etc.

Let's take 'Garden'. A property can have Private or Shared
sub-category. Then this sub-category is divided into a
sub-sub-category, such as 'Front' or 'Back', etc. These then have a
description, such as "Shared Garden in the Front of the Property".

Origingally, I was thinking of just putting the lowest level
description in the Property dimension, but some of the descriptions
are 50 chars long, which I thought would really reduce the speed of
queries matching these criteria.

This is what I've come up with:
Property dimension has 50 fields (one for each attribute).
Each of these fields has a foreign, surrogate key to an Attribute
sub-dimension table.
Attribute subdimension table has the surrogate key, the attribute
name, the sub-category code, the sub-sub-category code, and then the
description.

Would this improve performance? I would expect 5000 records in this
Attribute subdimension and perhaps hundreds of thousands in the
property table.

My questions is: would the integer values in the column being WHERE'd
improve the performance more than the loss of performance due to
having this extra join to a sub-table?

Thanks
Sean

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.