Time and date dimension in data warehouse

后端 未结 4 1271
灰色年华
灰色年华 2021-02-01 07:36

I\'m building a data warehouse. Each fact has it\'s timestamp. I need to create reports by day, month, quarter but by hours too. Looking at the examples I see that

4条回答
  •  名媛妹妹
    2021-02-01 08:00

    Time should be a dimension on data warehouses, since you will frequently want to aggregate about it. You could use the snowflake-Schema to reduce the overhead. In general, as I pointed out in my comment, hours seem like an unusually high resolution. If you insist on them, making the hour of the day a separate dimension might help, but I cannot tell you if this is good design.

提交回复
热议问题