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

Better asynchronous indexing whilst sticking to single task limit for RPC calls #394

Open
TheHolyRoger opened this issue Jul 18, 2020 · 1 comment · May be fixed by #395
Open

Better asynchronous indexing whilst sticking to single task limit for RPC calls #394

TheHolyRoger opened this issue Jul 18, 2020 · 1 comment · May be fixed by #395

Comments

@TheHolyRoger
Copy link
Collaborator

As the title says..

@TheHolyRoger
Copy link
Collaborator Author

@uaktags one thing jumping out at me is that in here:

async.eachLimit(blocks_to_scan, task_limit_blocks, function(block_height, next_block) {

We could build the block list from RPC calls (either in batches or all at once depending on memory), then in a new async loop do all the rest that we're currently doing.

Although a better but more invasive method would be to globally queue + limit RPC calls to a single thread

@TheHolyRoger TheHolyRoger linked a pull request Jul 18, 2020 that will close this issue
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 a pull request may close this issue.

1 participant