Skip to content
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

Count delegate txn in NEAR DAU #248

Merged
merged 4 commits into from
Jun 26, 2024
Merged

Count delegate txn in NEAR DAU #248

merged 4 commits into from
Jun 26, 2024

Conversation

anthonyyim
Copy link
Contributor

📌 References

🎄 Asset Checklist

  • Added to databases.csv or already exists

🧮 Metric Checklist

  • Added new fact tables if necessary
  • Pulled fact table into ez_asset_metrics.sql table
  • Compiles in Github
  • Show Changed Models in Github matches expectations for what metric value should be

@anthonyyim anthonyyim requested a review from a team as a code owner June 26, 2024 00:11
@anthonyyim anthonyyim force-pushed the ay_add_delegate_dau_near branch from fe8b7a8 to 7aec675 Compare June 26, 2024 21:39
@anthonyyim anthonyyim force-pushed the ay_add_delegate_dau_near branch from 3aaa5fb to 3c09863 Compare June 26, 2024 22:44
@anthonyyim anthonyyim changed the title WIP Count delegate txn in NEAR DAU Jun 26, 2024
@anthonyyim anthonyyim requested a review from SebMelendez01 June 26, 2024 22:45
Copy link
Contributor

@SebMelendez01 SebMelendez01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

truncated_near_fact_txns as (
select *
from near_flipside.core.fact_transactions
where block_timestamp > current_date() - interval '15 days'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to run this just for the last 15 days tonight?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, just for 15d for now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to last 60d

case when is_delegate = TRUE then tx_signer else tx_receiver end as adjusted_receiver,
from
fact_transactions_delegate_extracted
order by date DESC
Copy link
Contributor

@SebMelendez01 SebMelendez01 Jun 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might speed up a little if you remove order by date desc

@anthonyyim anthonyyim merged commit e524b9a into main Jun 26, 2024
3 checks passed
@anthonyyim anthonyyim deleted the ay_add_delegate_dau_near branch June 26, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants