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

(BIDS-2440) improve withrdawals page perf #2531

Merged
merged 3 commits into from
Sep 6, 2023

Conversation

guybrush
Copy link
Collaborator

@guybrush guybrush commented Sep 5, 2023

🤖 Generated by Copilot at 93c852c

This pull request improves the handling of withdrawals and BLS changes in the db and handlers packages by introducing and using constants for query limits. This enhances the code quality, performance, and accuracy of the queries.

@guybrush guybrush requested review from recy21 and Eisei24 September 5, 2023 13:35
db/db.go Outdated
FROM blocks_withdrawals w
INNER JOIN blocks b ON w.block_root = b.blockroot AND b.status = '1'
%s
ORDER BY w.block_slot DESC
Copy link
Collaborator

Choose a reason for hiding this comment

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

question: Why do we need an ORDER BY if we only count the results?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

you are right this is not needed, updated

@guybrush guybrush marked this pull request as ready for review September 5, 2023 14:13
@guybrush guybrush merged commit fdbf2fb into master Sep 6, 2023
3 checks passed
@guybrush guybrush deleted the BIDS-2440/improve-withdrawals-page-perf branch September 6, 2023 08:23
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.

3 participants