Merged PR 3433: Change lifecycle daily to just handle last available day
# Description Should improve performance of this daily lc model # Checklist - [X] The edited models and dependants run properly with production data. - [ ] The edited models are sufficiently documented. - [ ] 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.
This commit is contained in:
parent
8c7b4bcf94
commit
fd94c19694
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ with
|
|||
and d.date >= b.created_date_utc
|
||||
|
||||
{% if is_incremental() %}
|
||||
where d.date >= (select current_date - interval '7 days')
|
||||
where d.date >= (select max(date) from {{ this }})
|
||||
{% endif %}
|
||||
|
||||
group by d.date, a.id_accommodation, date(a.created_at_utc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue