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

Indexing: precompute counts of affected rows #3510

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

lonvia
Copy link
Member

@lonvia lonvia commented Aug 12, 2024

Compute the number of affected rows per rank in one go instead of computing them separately.

This saves about half a second on small imports. Sums up to a bit of saving when running about 500 small imports as part of the BDD tests.

Doing this once for the whole batch of ranks saves about
half a second for small imports. Speeds up BDD tests.
@lonvia lonvia merged commit 043d528 into osm-search:master Aug 12, 2024
11 checks passed
@lonvia lonvia deleted the indexing-precompute-count branch August 12, 2024 21:55
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.

1 participant