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

Filter addresses before insertion #7811

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

Qwerty5Uiop
Copy link
Collaborator

@Qwerty5Uiop Qwerty5Uiop commented Jun 28, 2023

Motivation

In cases when there are addresses that appears in many blocks, we have a large amount of blocking insert queries when in fact only small part of them will pass the on conflict condition. It makes sense to filter them on the app side first selecting them from db. These operations will not block each other.

Changelog

Add addresses filtration before insertion.

@Qwerty5Uiop Qwerty5Uiop force-pushed the filter-addresses-before-insertion branch 3 times, most recently from b52d25e to 3269246 Compare June 29, 2023 08:20
@Qwerty5Uiop Qwerty5Uiop force-pushed the filter-addresses-before-insertion branch from 3269246 to 928007e Compare June 30, 2023 14:05
@vbaranov vbaranov merged commit 9f9afe5 into master Jul 3, 2023
15 checks passed
@vbaranov vbaranov deleted the filter-addresses-before-insertion branch July 3, 2023 07:46
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

3 participants