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

Fully parallelize index construction #21

Merged
merged 4 commits into from
Jun 21, 2024
Merged

Fully parallelize index construction #21

merged 4 commits into from
Jun 21, 2024

Conversation

Maxxen
Copy link
Member

@Maxxen Maxxen commented Jun 20, 2024

Instead of constructing indexes during the sinking into the create index operator, we now buffer all input and then spawn tasks equal to the amount of threads that construct the index with all the data available in parallel. This means we now parallelize over vectors instead of row groups regardless of how much data we receive, and don't need to resize/reallocate the index multiple times (with extra locking) during construction.

On my machine this gives me an almost 10x performance increase. But there's still a bunch more small optimizations we can do.

@Maxxen Maxxen merged commit 8e3a622 into duckdb:main Jun 21, 2024
22 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.

1 participant