Junk Dimension is also known as Garbage Dimension. There may be a lot of miscellaneous, low-cardinality flags and indicators (e.g. TransactionType, TransactionStatus, VoidFlag, ActiveFlag, etc.) in a transaction.
This last one is our recommended solution. We usually create a single (or sometime a few) junk dimension consolidating these attributes together. In the above case, we may name it as Transaction Profile Dimension. It is a good technique to reduce the number of dimension tables (which allow a thin fact table) and complexity (improve understandability) of our data model.
If those attribute values are limited, we may pre-generate the whole Junk Dimension table by Cartesian product for all possible combination of values. To avoid the junk dimension grows too huge in size, we may sometimes create a few junk dimension tables (e.g. when too many fields; 10 binary flags may come to 2^10 rows)
No comments:
Post a Comment