Databricks Multi-Hop/Medallion Architecture is a data modeling approach used in data lakes to optimize query performance and storage utilization. It involves creating multiple versions of the same table with varying levels of granularity, which are linked together through foreign keys. The architecture is often used in data warehousing, where complex queries are run on large datasets.
The Medallion Architecture uses three different types of tables - Bronze, Silver, and Gold - to represent the same data at different levels of granularity. Here are the business reasons for using each type of table:
-
Bronze Tables: These are the most granular tables in the Medallion Architecture. Bronze tables contain every single piece of data, including all the details and transactions. They are used for storing raw data and are rarely used for querying. The business reason for using bronze tables is to ensure that all the data is preserved in its original form, so that it can be used for auditing purposes or for creating new data models in the future.
-
Silver Tables: Silver tables are a summarized version of the bronze tables. They contain aggregated data, such as daily or monthly summaries, and are used for reporting purposes. The business reason for using silver tables is to optimize query performance by reducing the amount of data that needs to be scanned. Silver tables are also used to reduce storage costs, as they require less space than bronze tables.
-
Gold Tables: Gold tables are the most summarized version of the data in the Medallion Architecture. They contain only the most important data, such as high-level trends or aggregations. Gold tables are used for strategic decision-making, such as forecasting or market analysis. The business reason for using gold tables is to provide insights quickly and efficiently, without having to run complex queries on the underlying data.
In summary, the Medallion Architecture uses Bronze, Silver, and Gold tables to optimize query performance, reduce storage costs, and provide insights at different levels of granularity. By using this approach, businesses can ensure that they have all the data they need for auditing purposes, while also being able to make strategic decisions quickly and efficiently.