Skip to content

Commit

Permalink
Merge branch 'add-event-time' into update-sources-snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Nov 6, 2024
2 parents bdc037e + 14632b3 commit aad3987
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ For performance use cases, people typically query the historical or latest appli

It’s helpful to understand how long it takes to build models (tables) and tests to execute during a dbt run. Longer model build times result in higher infrastructure costs and fresh data arriving later to stakeholders. Analyses like these can be in observability tools or ad-hoc queries, like in a notebook.

<Lightbox src="/img/docs/dbt-cloud/discovery-api/model-timing.jpg" width="200%" title="Model timing visualization in dbt Cloud"/>
<Lightbox src="/img/docs/dbt-cloud/discovery-api/model-timing.png" width="200%" title="Model timing visualization in dbt Cloud"/>

<details>
<summary>Example query with code</summary>
Expand Down
8 changes: 4 additions & 4 deletions website/docs/reference/resource-configs/event-time.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ Here are some examples of good and bad `event_time` columns:
When you configure `event_time`, it enables compare changes to:

- Compare data in CI versus production for overlapping times only, reducing false discrepancies.
- Handle scenarios where CI has "fresher" data than production by using only the overlapping timeframe, allowing you to avoid incorrect row-count changes.
- Account for subset data builds in CI without flagging filtered-out rows as "deleted" when compared with production.
- Handle scenarios where CI has "fresher" data than production, by using only the overlapping timeframe, allowing you to avoid incorrect row-count changes.
- Accounts for subset data builds in CI without flagging filtered-out rows as "deleted" when compared with production.

## Examples

Expand Down Expand Up @@ -203,7 +203,7 @@ Example in sql model config block:

</File>

This setup sets `session_start_time` as the `event_time` for the `user_sessions` model, which makes sure the compare changes process uses this timestamp for time-slice comparisons or incremental microbatching.
This setup sets `session_start_time` as the `event_time` for the `user_sessions` model. This makes sure the compare changes process uses this timestamp for time-slice comparisons or incremental microbatching.
</TabItem>

<TabItem value="seeds" label="Seeds">
Expand Down Expand Up @@ -233,7 +233,7 @@ seeds:
```
</File>

This setup sets `record_timestamp` as the `event_time` for `my_seed`. This ensures that the `record_timestamp` is used consistently for compare changes processes or incremental microbatching.
This setup sets `record_timestamp` as the `event_time` for `my_seed`. It ensures that the `record_timestamp` is used consistently in [Advanced CI's compare changes](/docs/deploy/advanced-ci#speeding-up-comparisons) or [incremental microbatching](/docs/build/incremental-microbatch).

</TabItem>
<TabItem value="sources" label="Sources">
Expand Down

0 comments on commit aad3987

Please sign in to comment.