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

Change prices from minute to day to avoid issues in the db #122

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

PoloX2021
Copy link
Contributor

The prices.minute table is completely messed up currently.
This PR switch to prices.day. This table is less precise because we are looking at individual transactions. But it does not impact daily performance metrics.

@PoloX2021 PoloX2021 requested a review from harisang January 21, 2025 13:59
@harisang
Copy link
Contributor

Out of curiosity, did you try to slice the prices.minute table by blockchain for example, i.e., or even by year etc? Just curious. Approving anyways as the change makes sense

@PoloX2021
Copy link
Contributor Author

The issue is not about performance, so I'm not sure reducing the timeframe would help.
And yes, for a same blockchain, there are sometimes double price inputs for the same token address

@PoloX2021 PoloX2021 merged commit bbd1899 into main Jan 21, 2025
2 checks passed
@PoloX2021 PoloX2021 deleted the fix-performance-comparison branch January 21, 2025 17:27
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