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

Bootstrap performance improvement #162

Open
jrwbabylonlab opened this issue Feb 10, 2025 · 0 comments
Open

Bootstrap performance improvement #162

jrwbabylonlab opened this issue Feb 10, 2025 · 0 comments
Assignees

Comments

@jrwbabylonlab
Copy link
Collaborator

jrwbabylonlab commented Feb 10, 2025

Our indexer is currently quite slow when bootstrapping from block 0.

In the recent testnet, it took approximately two days to fully sync, even though the testnet has only been running for half a month.

Scope of This Ticket:

The goal is to improve the bootstrap process, as we are currently syncing events one by one. We should explore ways to parallelize this process using multiple goroutines.

Possible Approach:

One potential optimization is grouping events by stakingTxHash when processing blocks. This way, we can ensure that events with the same transaction hash are processed sequentially while allowing independent transactions to be processed concurrently.

Let’s investigate if this approach (or a similar strategy) can significantly reduce the indexing time.

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

No branches or pull requests

2 participants