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

fix(storage): create the correct indexes for Merkle leaf queries #1710

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

kkovaacs
Copy link
Contributor

Global state tree and class commitment tree leaves are queried by matching on both the address/hash and the block number. Doing this efficiently requires a composite index on these tables.

Re-creating these indexes takes a few minutes on a recent mainnet DB.

Global state tree and class commitment tree leaves are queried by
matching on both the address/hash and the block number. Doing this
efficiently requires a composite index on these tables.
@kkovaacs kkovaacs requested a review from a team as a code owner January 30, 2024 09:04
@kkovaacs kkovaacs merged commit 0c8949f into main Jan 30, 2024
7 checks passed
@kkovaacs kkovaacs deleted the krisztian/fix-trie-leaf-indices branch January 30, 2024 11:06
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