<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by KONOK on Medium]]></title>
        <description><![CDATA[Stories by KONOK on Medium]]></description>
        <link>https://medium.com/@mdkamrul.islam_82046?source=rss-4ba1495afaf0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_h_aQSzfGoa8eIuCmeQTuw@2x.jpeg</url>
            <title>Stories by KONOK on Medium</title>
            <link>https://medium.com/@mdkamrul.islam_82046?source=rss-4ba1495afaf0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 18:56:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mdkamrul.islam_82046/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Relational Design for a Data Warehouse: A Comprehensive Guide]]></title>
            <link>https://medium.com/@mdkamrul.islam_82046/relational-design-for-a-data-warehouse-a-comprehensive-guide-cacd8a96aa5f?source=rss-4ba1495afaf0------2</link>
            <guid isPermaLink="false">https://medium.com/p/cacd8a96aa5f</guid>
            <category><![CDATA[data-warehouse-consulting]]></category>
            <category><![CDATA[data-warehouse-models]]></category>
            <category><![CDATA[data-warehouse-automation]]></category>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[data-warehouse-solutions]]></category>
            <dc:creator><![CDATA[KONOK]]></dc:creator>
            <pubDate>Mon, 30 Oct 2023 16:03:33 GMT</pubDate>
            <atom:updated>2023-10-30T19:35:07.840Z</atom:updated>
            <content:encoded><![CDATA[<p>Data warehouses have fundamentally altered how businesses handle data, providing a centralized repository for data aggregation, storage, and analysis. Unlike traditional operational databases, the design of a data warehouse focuses on supporting fast, complex queries across large volumes of data. Ever wondered how large companies store and manage vast amounts of data for easy analysis? They use something called a Data Warehouse. Let’s simplify and break down the design of a data warehouse.</p><h3>Understanding the Basics</h3><ul><li>Data Warehouse (DW): A large, centralized repository of data accumulated from a wide range of sources. Think of it as a huge digital library. But instead of books, it stores data from different places in one central location. It supports business intelligence activities, primarily analytical processing and reporting.</li><li>Relational Database Management System (RDBMS): It’s like the librarian where software organizes and takes care of this digital library. It uses SQL as its primary language.</li></ul><h3>Key Data Warehouse Architectures</h3><ol><li>Star Schema: The star schema is the foundational structure. Picture a star, in the middle, there’s a bright spot, surrounded by rays. Fact Table is situated at the center, containing quantitative data and keys relating to dimension tables. Dimension Tables surround the fact table and contain descriptive or categorical information.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*I1fQXMhV17XXHz0yF4NKCw@2x.jpeg" /><figcaption>Star Schema</figcaption></figure><ol><li>Snowflake Schema: An adaptation of the star schema where dimension tables are normalized. It’s like the star, but the rays (tables) are split further into smaller rays to be more specific.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*BkscxApnkr3qyczpqVeEbA@2x.jpeg" /><figcaption>Snowflake Schema</figcaption></figure><ol><li>Fact Constellation Schema: A combination of multiple star or snowflake schemas where multiple fact tables might share dimension tables. Imagine a night sky with multiple stars. Some of those stars (tables) might share rays (information).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0lKjCGZpSMnti_byrbVNMQ@2x.jpeg" /><figcaption>Constellation/Galaxy Schema</figcaption></figure><h3>The Essence of Normalization in Data Warehousing</h3><p>Normalization in operational databases is about reducing redundancy. In data warehouses, the aim shifts towards optimizing query performance. Hence, DWs often consist of denormalized data. For example: In a regular library, you wouldn’t store the same book in multiple spots. Similarly, in databases, you avoid storing the same piece of info multiple times. But in a data warehouse, sometimes it’s okay to do so to fetch data faster.</p><h3>Surrogate Keys</h3><p>These are unique identifiers for records. Surrogate keys are crucial in DWs because primary keys from source systems can be mutable, jeopardizing historical data integrity in the warehouse. For example: Think of these as unique membership IDs in a club. Even if a member’s details change, the ID remains constant. In a data warehouse, these IDs help keep track of data without confusion.</p><h3>Slowly Changing Dimensions (SCD)</h3><p>Sometimes the info we have changes. For example, a product’s name might change. SCDs help us decide:</p><p>•	Type 1: Should we replace the old name with the new one?</p><p>•	Type 2: Should we keep both the old and new names?</p><p>•	Type 3: Should we add a special note mentioning the change?</p><h3>Leveraging Aggregates</h3><p>To boost performance, aggregate tables, which store summarized data, are often incorporated. Summarizing data aids in rapid querying, especially in vast databases.</p><h3>Enhancing Performance with Indexes and Partitions</h3><p>While indexing quickens data retrieval, partitioning segment tables into smaller portions, stored separately, allows more efficient data management and querying. For example: Imagine a book index or a divider in a binder. These tools help you find info faster. Similarly, data warehouses use “indexes” and “partitions” to quickly fetch data.</p><h3>The ETL Process</h3><p><strong><em>ETL (Extract, Transform, Load)</em></strong> is a three-stage process where data is:</p><ul><li><strong>Extracted</strong> from multiple sources, meaning getting data from different places.</li><li><strong>Transformed</strong> for analysis, meaning making the data neat and tidy.</li><li><strong>Loaded</strong> into the DW, meaning put the tidy data into the warehouse.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*h4h6KepK7Mn4VMIkTT8oaw@2x.jpeg" /><figcaption>ETL Process</figcaption></figure><h3>Fact Table Granularity</h3><p>Determining the granularity of your fact table is key. Will it be transactional, daily, monthly, or another level?</p><h3>Storing Historical Data</h3><p>DWs typically stockpile historical data. It’s vital to decide the granularity and extent of historical data to be retained.</p><h3>Conclusion</h3><p>Designing a relational database for a data warehouse is a nuanced process that requires a shift in focus from traditional database design principles. By understanding the unique architectural patterns and best practices, one can efficiently design a robust, performant data warehouse tailored for comprehensive data analysis.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cacd8a96aa5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>