Master Dimensional Modeling Lesson 01 - Why Use a Dimensional Model?

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 29

  • @recs8564
    @recs8564 2 месяца назад

    Very excited about this series

  • @MDFeb11975
    @MDFeb11975 7 месяцев назад +4

    I watched and took notes from your older video on dimensional modeling. Best explanation I’ve watched! Looking forward to watching this series too

  • @TRZMac
    @TRZMac 2 месяца назад +3

    As a 21 Year Old struggeling with these stuff, because we usually dont really get told what to exactly learn, I really appreciate your videos !

  • @Mithali00
    @Mithali00 5 месяцев назад +2

    Thanks for the video! Would you always choose dimensional modeling when the goal is to support reporting and analytics? I ran into a situation where the analysts would rather use Salesforce's source data model with some minimal denormalization than its star schema version. They believe it would actually introduce MORE joins for them as one table - e.g. Opportunity - is now split into a fact and a dimension table so they don't see the benefit. How would you go about demonstrating the benefits for the end users in such a case? Thank you!

    • @BryanCafferky
      @BryanCafferky  5 месяцев назад +2

      It is not always necessary to use a Star Schema but usually a better option than an OLTP model. If the purpose is to use the data by Power BI then a Star Schema is highly recommended by Microsoft. I'm not clear on Tableau. However, without a star schema, you can't easily support dimension history, i.e., SCD 2. So if a store changes from one region to another, all data related to the store is updated at that point in time which means reports a year ago don't match new reports year over year and regional sales comparisons will not longer be valid.
      If the business does not care about that and are Ok with a changing snapshot of the data, then the next thing is to look at the complexity of the model. If it's just a few tables, it may not matter but if you need to join many tables and nest joins like Opportunity to Order to Product to Product Category, then it will likely not perform well.
      Best bet is to test both models against what you expect the primary queries to be like and see how they hold up. It comes down to what delivers the most value to the business.

  • @ericaleverson9430
    @ericaleverson9430 3 месяца назад +2

    I made a mistake in an interview today and confused the star schema with the 3 Normal Forms. I also stated star schema was normalization when it was denormalized...oh well.

    • @Milhouse77BS
      @Milhouse77BS 3 месяца назад +3

      The important part of the star schema, the fact table, IS in third normal form. Only the dimensions are 2NF for simplicity and speed. Pure 3NF is not as important in a reporting database as it is an a transactional database. I like to say that a star schema is a reorganization, not a denormalization. The more important “denormalization“ is header detail tables into one table.

    • @ericaleverson9430
      @ericaleverson9430 3 месяца назад

      @@Milhouse77BS Thank you for clearing this up for me!

    • @mindyourown6320
      @mindyourown6320 2 месяца назад

      What position did you apply for?

    • @ericaleverson9430
      @ericaleverson9430 2 месяца назад

      @@mindyourown6320 Sr Healthcare Data Analyst. Just did a 2nd interview with them today.

  • @dertrickwinn7982
    @dertrickwinn7982 5 месяцев назад +1

    When you are describing what's on the screen, can you please use the mouse to point to what you are referring to please.

    • @BryanCafferky
      @BryanCafferky  5 месяцев назад

      It can be tricky using mouse pointers in the recordings. I've experimented with some. I usually animate slide bullet points so you focus on the current bullet point. Which specific parts of the presentation were you confused by?

  • @marcin2x4
    @marcin2x4 6 месяцев назад

    Snowflake doesn't enforce Keys, they are only informative.
    That forces devs and architects to handle data quality on their end thus dim model might be daunting to implement, still doable :)

  • @coffeemusiccoding
    @coffeemusiccoding Месяц назад

    Love this! With the fact tables that have the numeric values. Would these values be calculated in the transformation process in a data pipeline? For example data bricks?

    • @BryanCafferky
      @BryanCafferky  Месяц назад +1

      Generally, no. Facts usually are things like the sales amount, tax amount, etc., so the things you want to aggregate. But sometimes you want to create a calculated column like profit = salesamount-cost just to make it easier for reporting. This can be done in the ETL pipeline.

    • @coffeemusiccoding
      @coffeemusiccoding Месяц назад

      @@BryanCafferky thank you very much for your reply that makes sense! ☺️

    • @BryanCafferky
      @BryanCafferky  Месяц назад

      @@coffeemusiccoding You're welcome!

  • @ciobanuradumihnea5793
    @ciobanuradumihnea5793 7 месяцев назад

    Hello, thank you for the video, very informative. Im just wondering isnt there a risk of table deadlock since the table FactResellerSaler is always the entrypoint for most of the queries ? Thank you for your response :).

    • @BryanCafferky
      @BryanCafferky  7 месяцев назад

      Good question. Only possible during table loads but that should be done one table at a time to avoid the issue. Main thing is the Fact table must be updated after the dimension tables. Reading the tables will not cause deadlocks.

  • @kushaleregowda
    @kushaleregowda 6 месяцев назад

    Thanks a lot Bryan. This is a great info and hard to find it so please continue the series..

  • @raghuramsharma2603
    @raghuramsharma2603 7 месяцев назад

    loved it and enjoy ur voice modulation :)

  • @muhammadzakiahmad8069
    @muhammadzakiahmad8069 6 месяцев назад

    This is exactly we need.

  • @stu8924
    @stu8924 7 месяцев назад

    Thanks Bryan, I'm looking forward to your series. Take care.

  • @omarcruz6326
    @omarcruz6326 2 месяца назад

    Great Material !
    Thanks a lot.

  • @banihas22
    @banihas22 7 месяцев назад

    Yes!