data-dwh-dbt-project/models/intermediate
Pablo Martín 96f061e122 Merged PR 3671: Refactor new dash user overview
# Description

This query refactors the model `int_core__new_dash_user_overview` to optimize performance.

The output of the model remains unaltered.

The performance gains are obtained by preventing a monster-grade intermediate join with almost 100 million rows + a sequential order that the current `master` model causes. This refactor breaks down the query that caused that into multiple CTEs that pre-aggregate results, avoiding the dimensional explosion.

# Checklist

- [X] The edited models and dependants run properly with production data.
- [X] The edited models are sufficiently documented.
- [X] The edited models contain PK tests, and I've ran and passed them.
- [X] I have checked for DRY opportunities with other models and docs.
- [X] I've picked the right materialization for the affected models.

# Other

- [ ] Check if a full-refresh is required after this PR is merged
2024-11-26 16:03:22 +00:00
..
athena docs for athena int 2024-10-08 14:54:11 +02:00
core refactor 2024-11-26 16:05:55 +01:00
cross Merged PR 3482: Adapts date dimension skeleton for Main KPIs 2024-11-11 15:57:37 +00:00
edeposit move docs for int_edeposit__guesty_verifications 2024-10-08 14:45:50 +02:00
hubspot Merged PR 3194: First version of Hubspot deals in intermediate 2024-10-16 12:15:14 +00:00
kpis Merged PR 3666: Aggregated model for guest kpis metrics in intermediate 2024-11-26 15:37:06 +00:00
xero Merged PR 3455: Cleans old Xero KPIs models 2024-11-07 11:48:15 +00:00