Hi everyone,
I’m currently working on a client project where the source data comes from Veeva QMS (Quality Management System). The data is being ingested into Databricks using Fivetran, and my next step is to build the data foundation, including the curated Gold layer and Materialized Views (MVs), which will serve as the data source for downstream dashboards.
Since QMS is a process-oriented system with multiple interdependent parent-child objects, I would appreciate the community’s guidance on a couple of design considerations:
1. Data Modelling Approach
Given that QMS contains several parent-child objects with dependencies between them, what would be the recommended approach for designing the Gold layer?
Should I model the data using a traditional fact and dimension approach?
How should I handle relationships and dependencies between different QMS objects?
Are there any recommended modelling patterns for process-oriented data?
2. Materialized Views and Historical Data
I'm also trying to understand the best approach for designing Materialized Views on top of the Gold layer.
Should MVs primarily represent the current state of the data?
If the business wants to analyse historical trends (e.g., how a QMS process or record has evolved over time), should I maintain historical data in the Gold tables and use those tables alongside the MVs?
Would you recommend maintaining separate current-state and historical views, or is there a better architectural approach?
I'd love to hear how others have approached similar QMS or process-oriented data modelling scenarios in Databricks, particularly when designing the Gold layer for both current-state reporting and historical analytics.
Any suggestions, best practices, or architectural recommendations would be greatly appreciated!
Thanks!
Niyojit