LiteDB icon indicating copy to clipboard operation
LiteDB copied to clipboard

Question: how to specify thread-safe concurrency

Open djarvis opened this issue 8 years ago • 2 comments

Hi.

The documentation didn't indicate how to specify to LiteDb to use thread-safe concurrency versus process-safe concurrency. Do I not have to set anything or did I miss something?

Thanks!

djarvis avatar Oct 22 '18 21:10 djarvis

You can share a single LiteRepository, LiteDatabase or LiteEngine instance across your threads (thread-safe) Use a share instance, the library will handle all the concurrency lock for you.

There are nothing to configure as I know, just you either let the library handle it for you, or you choose to handle yourself.

ooikengsiang avatar Oct 26 '18 00:10 ooikengsiang

Hi! With the objective of organizing our issues, we are closing old unsolved issues. Please check the latest version of LiteDB and open a new issue if your problem/question/suggestion still applies. Thanks!

lbnascimento avatar Feb 28 '20 13:02 lbnascimento