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

Limit fetchers init tasks #7697

Merged
merged 1 commit into from Jun 19, 2023
Merged

Limit fetchers init tasks #7697

merged 1 commit into from Jun 19, 2023

Conversation

Qwerty5Uiop
Copy link
Collaborator

@Qwerty5Uiop Qwerty5Uiop commented Jun 13, 2023

Motivation

All fetchers that implements the BufferedTask behaviour has init query that fetches all records from db that have to be handled by current fetcher. These queries may be complicated and therefore time consuming.

Changelog

Added limit for fetchers init queries. Logic of BufferedTask was changed a bit. Now all fetchers have poll: true by default which means that they will run init function again every time their queue is empty. So every init task now have the limit and remaining entries will be fetched with the same limit when fetcher is done.

Introduced INDEXER_FETCHER_INIT_QUERY_LIMIT env var, docs update: blockscout/docs#165

@vbaranov vbaranov merged commit a951168 into master Jun 19, 2023
15 checks passed
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.

None yet

2 participants