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

Deprecate Pool threads #23

Merged
merged 14 commits into from
Oct 28, 2020
Merged

Deprecate Pool threads #23

merged 14 commits into from
Oct 28, 2020

Conversation

QSmally
Copy link
Owner

@QSmally QSmally commented Oct 28, 2020

As of writing this PR, I'm deprecating the Pool threads in favour of implementing your own threads. This is because the Pool thread template is useless as only database thread. Implementing your own can include additional logic which will be more helpful anyway.

Lastly, as threads' MessagePorts can't transfer functions, it doesn't allow to process iterating queries (as those methods use functions to determine filtering or the transfer of iterations). As those iterative queries are mostly always the slowest, that defeats the purpose of the thread.

Parallelising requests in a web server with your own instance of the database for each thread would be faster, too

@QSmally QSmally merged commit bc0452c into v4 Oct 28, 2020
@QSmally QSmally deleted the dep-threads branch October 28, 2020 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant