[CT-3150] [Implementation] allow source freshness to be calculated in batch, when using warehouse metadata tables #8705
Labels
enhancement
New feature or request
Impact: CA
user docs
[docs.getdbt.com] Needs better documentation
Milestone
Housekeeping
Short description
From #7012
For sources marked for freshness via metadata, dbt should issue a single query instead of one per source. It would massively speed up compiling of source freshness.
It may also be possible to batch queries together to get performance improvements:
There's some precedent for this — that's the pattern dbt follows right now for
docs generate
. We know that can lead to significant time/memory consumption at scale, so we'd want this implementation to still respect node selection (--select): If I'm only checking the freshness for a handful of sources, filter down the information schema. Node selection is already supported withdbt source freshness
, so we should maintain this behavior. https://docs.getdbt.com/reference/commands/sourceAcceptance criteria
Impact to Other Teams
None
Will backports be required?
None
Context
No response
The text was updated successfully, but these errors were encountered: