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

Query token transfers before updating #6550

Merged
merged 1 commit into from
Dec 5, 2022
Merged

Conversation

Qwerty5Uiop
Copy link
Contributor

Motivation

Querying token transfers within block number range with NULL token_id is an expensive operation since there is no corresponding index, so it's cheaper to query them only by range (using index) and filter afterwards.

Changelog

Filter token transfers for update after select them by block number range.

@vbaranov vbaranov merged commit 9df316a into master Dec 5, 2022
@vbaranov vbaranov deleted the fix-token-id-migrator branch December 5, 2022 13:09
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.

2 participants