data-dwh-dbt-project/models
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
..
intermediate Merged PR 3671: Refactor new dash user overview 2024-11-26 16:03:22 +00:00
reporting Merged PR 3667: Creates Chargeable metrics for New Dash KPIs 2024-11-26 14:19:41 +00:00
staging Merged PR 3632: Brings Billing tables into Staging 2024-11-22 08:34:58 +00:00
doc_blocks.md improve stg_stripe__charges 2024-02-23 16:45:19 +01:00