Seattle Data Guy
YouTube
Why Your Data Warehouse Is Still Failing - Why The Business Still Can't Answer Key Questions
Centralizing data in a warehouse or lakehouse alone does not solve integration problems; you must model and unify data across systems. The core issue is fragmented customer definitions across Salesforce, HubSpot, product DBs, and other sources, leading to impossible join queries. Solving this requires defining a canonical customer entity, assigning ownership, choosing a source of truth, and integrating IDs early at the application layer. This approach is useful for data engineers, analytics teams, and product managers who need consistent, queryable customer views for reporting and decision making.
Insights
1. Vertical vs Horizontal Integration
1.1 Vertical integration stacks data from the same domain (e.g., orders in Postgres and add‑ons in MongoDB) to create a single logical view; it is used when a business process spans multiple storage layers.
1.2 Horizontal integration merges related data from different domains (e.g., customer data in Salesforce, HubSpot, and a product DB) to build a unified entity; it is used when the same real‑world object appears in multiple systems.
1.3 Trade‑off: vertical integration can become complex when data formats differ, while horizontal integration requires robust identity resolution across systems.
2. Canonical Customer Table
2.1 A single, authoritative table that represents the customer across all systems; it contains a chosen source of truth ID and merged attributes.
2.2 Create it after mapping business questions to required attributes and after selecting a source of truth; it avoids ad‑hoc joins in queries.
2.3 Common mistake: building a canonical table that is too granular and never evolves; keep it focused on core entities and add extensions later.
3. Source of Truth Selection
3.1 Choose the system that most reliably stores the attribute (e.g., Salesforce for contact records).
3.2 Criteria include data quality, update frequency, and ownership; the chosen source becomes the master for that attribute.
3.3 Pitfall: switching sources frequently leads to data drift; lock in the decision and document it.
4. Application‑Layer vs Data‑Layer Integration
4.1 Integrate at the application layer by propagating a single customer ID across services; this reduces the need for complex data‑layer joins.
4.2 Benefits include early error detection, easier maintenance, and avoidance of “duct‑tape” data fixes.
4.3 When data already exists in a warehouse and cannot be changed, fall back to data‑layer integration using lookup tables or fuzzy matching.
5. Business‑Question Driven Modeling
5.1 Start by enumerating the key analytics questions (e.g., which customers are profitable).
5.2 Use those questions to decide which attributes and entities must be in the model; avoid adding unrelated details that delay delivery.
5.3 Misconception: building a generic data model first; instead, let the business needs shape the data model.
1.1 Vertical integration stacks data from the same domain (e.g., orders in Postgres and add‑ons in MongoDB) to create a single logical view; it is used when a business process spans multiple storage layers.
1.2 Horizontal integration merges related data from different domains (e.g., customer data in Salesforce, HubSpot, and a product DB) to build a unified entity; it is used when the same real‑world object appears in multiple systems.
1.3 Trade‑off: vertical integration can become complex when data formats differ, while horizontal integration requires robust identity resolution across systems.
2. Canonical Customer Table
2.1 A single, authoritative table that represents the customer across all systems; it contains a chosen source of truth ID and merged attributes.
2.2 Create it after mapping business questions to required attributes and after selecting a source of truth; it avoids ad‑hoc joins in queries.
2.3 Common mistake: building a canonical table that is too granular and never evolves; keep it focused on core entities and add extensions later.
3. Source of Truth Selection
3.1 Choose the system that most reliably stores the attribute (e.g., Salesforce for contact records).
3.2 Criteria include data quality, update frequency, and ownership; the chosen source becomes the master for that attribute.
3.3 Pitfall: switching sources frequently leads to data drift; lock in the decision and document it.
4. Application‑Layer vs Data‑Layer Integration
4.1 Integrate at the application layer by propagating a single customer ID across services; this reduces the need for complex data‑layer joins.
4.2 Benefits include early error detection, easier maintenance, and avoidance of “duct‑tape” data fixes.
4.3 When data already exists in a warehouse and cannot be changed, fall back to data‑layer integration using lookup tables or fuzzy matching.
5. Business‑Question Driven Modeling
5.1 Start by enumerating the key analytics questions (e.g., which customers are profitable).
5.2 Use those questions to decide which attributes and entities must be in the model; avoid adding unrelated details that delay delivery.
5.3 Misconception: building a generic data model first; instead, let the business needs shape the data model.