-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T 12432 performance testing optimize and partition by on dbt models n…
…ew (#1096) This PR results from a discussion we had w/ @aalan3, with the aim of optimizing/reducing build time for incremental tables. This resulted in 2 changes: - Running OPTIMIZE on incremental tables on-run-end - Replacing the incremental filter by a static filter, namely `NOW() - interval 2 days` I've checked that: * [*] I tested the query on dune.com after compiling the model with dbt compile (compiled queries are written to the target directory) * [*] I used "refs" to reference other models in this repo and "sources" to reference raw or decoded tables * [*] the directory tree matches the pattern /sector/blockchain/ e.g. /tokens/ethereum * [*] if adding a new model, I added a test * [*] the filename is unique and ends with .sql * [*] each file has only one view, table or function defined * [*] column names are `lowercase_snake_cased`
- Loading branch information
Showing
9 changed files
with
15 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
spellbook/macros/alter_tblproperties/alter_tblproperties_nft_trades.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters