Open BeadW opened 1 year ago
Hi @BeadW , There is definitely already some interest in shifting it to the model level. If you have an alternate macro we could add into the mix, it would definitely be welcome. We would probably keep it as two different macros so that people can choose which method to use.
I would add another reason:
The current implementation of snowflake tagging runs as a post run hook. (https://github.com/Montreal-Analytics/dbt-snowflake-utils#snowflake_utilsapply_meta_as_tags-source)
This works however there are some ways we can improve it.
Limitations (not exhaustive) of the current approach:
I propose that we move to a post hook which runs as part of the model transaction. This means that tagging should occur as part of the model build transaction and dbt will automatically multi thread it according to the threading settings of the project.
I have a proof of concept to demonstrate this works and am happy to provide that and work toward a more feature complete version if this approach is to be adopted.