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

Currency and Parallelism #773

Closed
omymy1 opened this issue Jul 19, 2021 · 3 comments
Closed

Currency and Parallelism #773

omymy1 opened this issue Jul 19, 2021 · 3 comments
Labels
more information needed Further information is requested question Support or open question(s)

Comments

@omymy1
Copy link

omymy1 commented Jul 19, 2021

Is Concurrency and Parallelism feature already available in Leveldown?

@vweevers
Copy link
Member

Can you please elaborate?

@vweevers vweevers added more information needed Further information is requested question Support or open question(s) labels Jul 19, 2021
@omymy1
Copy link
Author

omymy1 commented Jul 20, 2021

that means multiple put or get operation in same time that is concurrency, and multiple operation happened parallelly that is Parallelism.

@vweevers
Copy link
Member

Yes, operations run concurrently. They're asynchronously executed in a thread pool. Which may effectively be parallel, given enough free threads. In addition, iterators and streams operate on a snapshot of the database, meaning they're unaffected by concurrent writes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information needed Further information is requested question Support or open question(s)
Projects
None yet
Development

No branches or pull requests

2 participants