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

Queries using ORDER BY and LIMIT 1 are slow #174

Closed
prathamesh0 opened this issue Jul 11, 2022 · 0 comments
Closed

Queries using ORDER BY and LIMIT 1 are slow #174

prathamesh0 opened this issue Jul 11, 2022 · 0 comments
Assignees
Labels

Comments

@prathamesh0
Copy link
Contributor

Queries where we want to get latest account state / storage use ORDER BY block_number DESC and LIMIT 1 to get the latest result. For eg. RetrieveStorageLeafByAddressHashAndLeafKeyAndBlockHashPgStr

These queries take too long to execute. For eg. A getStorageAt call using the query above didn't complete execution even after 60 sec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants