-
Notifications
You must be signed in to change notification settings - Fork 1k
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
can multiple processes write to same db? #479
Comments
Hello, the answer is no, you should never access the same nedb instance from multiple processes. Typically it would not work, as the first process will get a lock on writing to the data file. |
is it possible to wait for the lock to be released? |
There should definitely be an unlocking mechanism since this is an essential feature. |
You may be interested in PR #535. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've found issues when multiple process update flat json files...sometimes the file will get corrupt.
I'm curious if nedb has solved this or if I should be careful not to update the database asynchronously or from multiple processes.
The text was updated successfully, but these errors were encountered: