techfort / LokiJS

javascript embeddable / in-memory database
http:/techfort.github.io/LokiJS
MIT License
6.76k stars 482 forks source link

Question: Is LokiJS concurrent process safe? #939

Open rayzorben opened 3 weeks ago

rayzorben commented 3 weeks ago

If I have multiple node processes all accessing the same file database, is it safe?

  1. Will it cause corruption
  2. Will it report conflicts (ideal)
  3. Will the most recent update 'win' if the same record is updated by both (not ideal but okay)