Merged PR 4959: Exclude data from model to improve performance
# Description Small changes to exclude "irrelevant" data. All data is relevant I guess but this is less. * Exclude churned accounts after 3 months. * Exclude any data after 24 months. # 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. - [ ] I have checked for DRY opportunities with other models and docs. - [ ] I've picked the right materialization for the affected models. # Other - [ ] Check if a full-refresh is required after this PR is merged. Related work items: #28998
This commit is contained in:
parent
7b6fd81bf1
commit
55f8b47faa
3 changed files with 20 additions and 0 deletions
|
|
@ -2335,6 +2335,12 @@ models:
|
|||
This model aggregates the historic information of our business by providing
|
||||
different metrics at account level (by id_deal).
|
||||
Additionally it provides Deal attributes.
|
||||
Metrics displayed in the model range for the past 24 months. Also, churned
|
||||
accounts are available for historical values, until 3 months after the offboarding
|
||||
date.
|
||||
Keep in mind that metrics that depend on the invoicing cycle are only available with
|
||||
a time delay. If you need timely information, at your own risk, check the equivalent
|
||||
intermediate model.
|
||||
|
||||
data_tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue