Litedb: File concurrency.

Created on 24 Jan 2017  路  2Comments  路  Source: mbdavid/LiteDB

Hi there,

I am new to LiteDB and I would like the clarify what you mean by "file concurrency"?

I understand it is thread safe, i.e. multiple threads from the same application can use the same instance of the database safely. I am in a situation however where I need two independent processes to work on the same database file at the same time - is this long longer possible?

Regards.

question

Most helpful comment

Hi @sBoff, current v3 support both thread concurrency and file concurrency (multiple instances/process using same datafile) in net35 version. In my first v3 beta version I removed multiprocess access but add back in v3 release after this issue #332. Wiki are not updated yet.

If you are running in netstandard, only LiteDB must open file as exclusive access (netstandard doesn't support lock file).

All 2 comments

Hi @sBoff, current v3 support both thread concurrency and file concurrency (multiple instances/process using same datafile) in net35 version. In my first v3 beta version I removed multiprocess access but add back in v3 release after this issue #332. Wiki are not updated yet.

If you are running in netstandard, only LiteDB must open file as exclusive access (netstandard doesn't support lock file).

Fantastic, thank you very much!

Was this page helpful?
0 / 5 - 0 ratings