eugene-eeo / tinyrecord

transaction support for TinyDB
MIT License
94 stars 11 forks source link

threaded application #5

Closed joaoreis81 closed 6 years ago

joaoreis81 commented 7 years ago

I'm using tinydb and facing problems with threaded application. The database corrupts. Does tinyrecord solve the concurrency problem? Thanks.

eugene-eeo commented 7 years ago

@joaoreis81 as long as you do not run multiple processes that all write to the same file at the same time, you will be fine. tinyrecord only makes sure that the DB will not be corrupted when you modify it from multiple threads in the same process.