-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate cex_ethereum.flows to a sector spell with macros to easily add new chains #5521
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
music to my ears!
one quick comment below, if you don't mind checking performance
FROM {{ ref('tokens_ethereum_transfers')}} t | ||
INNER JOIN {{ ref('cex_ethereum_addresses')}} a ON a.address IN (t."from", t.to) | ||
FROM {{transfers}} t | ||
INNER JOIN {{addresses}} a ON a.address IN (t."from", t.to) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you run a quick test on performance to see how runtime looks when you remove IN
and do (a.address = t."from" or a.address = t.to)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
old run for reference:
https://github.com/duneanalytics/spellbook/actions/runs/8178326082/job/22361994788
can compare when new is done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, no real change. feel free to keep as-is or revert to your preference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's good as is, feel free to merge
Goal here is to create this macro so i can easily add cex_{chain}.flows for all other evm chains afterwards @jeff-dude