Open soubhikchatterjee opened 3 years ago
you can manually call compactDatafile(), read https://github.com/louischatriot/nedb#persistence
actually I have tried run compactDatafile() in callback of db.remove but still not works. the function has no effect
I am using nedb in one of my projects. It seems to be matching my needs so far. I see one issue though, when trying to delete a record, instead of deleting the entire record, it does a partial deletion. i.e. it deletes the record and adds $$deleted: true.
{"$$deleted":true,"_id":"5ff56dece70e4d331ca9d724"}
Can the record be deleted permanently?
This is my code: