Reputation: 2445
I'm using Saiku 2.5 and I'm not sure how to model the following situation:
Dimentions:
Measuremnts:
Relationships
I'd like to know if it's better performance-wise, to de-normalize all categories into one table or leave it as it is. Each "category-like" table has a VARCHAR(8) and two TEXT().
Upvotes: 1
Views: 316
Reputation: 672
Your categories should be in a single table, since 8k row joins are easy.
Other should be split in a few tables. This will allow mondrian to perform the join at high levels (low cardinality) when possible and thus perform better.
Mondrian plays well with both scenarios.
Upvotes: 0
Reputation: 51533
I'd like to know if it's better performance-wise, to de-normalize all categories into one table or leave it as it is.
You're optimizing a data warehouse for read performance, so I'd opt for denormalizing the category tables. You're talking roughly 8,000 rows or a page and a half in most relational databases. You could keep this table in memory.
Seems like a star schema would work for you. If the other dimensions have relations, then a snowflake schema would be warranted.
Upvotes: 2