Star और Snowflake schema

डेटाबेस डिज़ाइन

Lis Sulmont

Curriculum Manager

Star schema

Dimensional modeling: Star schema

Fact tables

  • किसी metric के रिकॉर्ड रखती हैं
  • नियमित रूप से बदलती हैं
  • Foreign keys के जरिए dimensions से जुड़ती हैं

Dimension tables

  • attributes के विवरण रखती हैं
  • उतनी बार नहीं बदलतीं

उदाहरण:

  • USA और Canada में स्टोर्स को किताबें सप्लाई करें
  • Book sales ट्रैक करें
डेटाबेस डिज़ाइन

Star schema उदाहरण

Star schema डायग्राम

डेटाबेस डिज़ाइन

Snowflake schema (एक विस्तार)

Snowflake schema डायग्राम

डेटाबेस डिज़ाइन

वही fact table, अलग dimensions

$$

Star schema डायग्राम

Star schemas: एक dimension

$$

Snowflake schema डायग्राम

Snowflake schemas: एक से अधिक dimensions

क्योंकि dimension tables normalized होती हैं

डेटाबेस डिज़ाइन

Normalization क्या है?

  • Database design तकनीक
  • Tables को छोटे tables में बाँटकर relationships से जोड़ती है
  • उद्देश्य: redundancy घटाना और data integrity बढ़ाना
डेटाबेस डिज़ाइन

Normalization क्या है?

  • Database design तकनीक
  • Tables को छोटे tables में बाँटकर relationships से जोड़ती है
  • उद्देश्य: redundancy घटाना और data integrity बढ़ाना

दोहराए जाने वाले data groups पहचानें और उनके लिए नए tables बनाएँ

डेटाबेस डिज़ाइन

Star schema की book dimension

$$ Star schema की book dimension

सबसे अधिक दोहराव संभव:

  • Author
  • Publisher
  • Genre
डेटाबेस डिज़ाइन

Snowflake schema की book dimension

Snowflake schema की book dimension

डेटाबेस डिज़ाइन

Star schema की store dimension

$$ Star schema की store dimension

  • City
  • State
  • Country
डेटाबेस डिज़ाइन

Snowflake schema की store dimension

Snowflake schema की store dimension

Snowflake schema की book dimension

डेटाबेस डिज़ाइन

$$ $$ $$ $$ $$ Star schema की time dimension

$$ Snowflake schema की time dimension

डेटाबेस डिज़ाइन

$$

Snowflake schema

डेटाबेस डिज़ाइन

अभ्यास करते हैं!

डेटाबेस डिज़ाइन

Preparing Video For Download...