Eager saving mode?
It would be great if collections supported eager saving node, in which insertion, updates and deletion of documents were persisted immediately. This would be async, so promise could be returned.
This makes sense, probably more in Node.js than the browser but both would benefit depending on the application I suppose.
Indeed, I working with electron, which is chromium with integrated node API, and I have some data which I need to be saved right away, so it can survive app crash or some unexpected exit.
This is now a planned enhancement. It is so easy to implement that it will probably make it's way into the next revision build :)
Thanks! This would remove a couple of lines of code for me :)
Hi ya, just an update that you can now enable this on the Node.js side by doing db.persist.auto(true). Browser-side will get the update soon.
Hey great news,
I hope to see this on browser side soon.
Thanks a lot.