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

Optimization of Insert Stored Proc - Parallelization Idea #5

Open
sfelman opened this issue Apr 27, 2024 · 0 comments
Open

Optimization of Insert Stored Proc - Parallelization Idea #5

sfelman opened this issue Apr 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sfelman
Copy link
Owner

sfelman commented Apr 27, 2024

The Insert Algorithm could be run with some parallelization.
The main insight is that you can only have 1 insert running at each level of the tree at 1 time.
Once the prior insert has reached the point where it has compared to the parent node, you can start the next one and you can then do your comparisons in parallel. Up to 1 comparison per level of the tree at a time. As the tree gets larger this performance increase could be significant.

The Insert stored procedure would need to take a table parameter rather than a single word and there would need to be some way to track which word is next to insert, the current parent node Id for each word currently being inserted, and which are done inserting.

@sfelman sfelman added the enhancement New feature or request label Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant