0

I want to delete any trace of a particular database item e.g. deleting a user message from a Messages collection. I am trying to find out how can I do cleanup the corresponding journal entries so no one can recreate the item. I don't want to disable journaling for this purpose if possible. Having a short journaling cycling window (journal cleans itself after x time) might be an option...

I tried searching amongst existing documents and responses, but might have missed something. Any pointers would be appreciated.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
A V
  • 1
  • 2
    The problem with a short window is that you might as well just turn off journaling altogether tbh – Sammaye Aug 05 '15 at 15:31
  • I agree. I don't prefer that option either. I was thinking if there is no other way, probably I can set some option like 1 hour old journal only. This way I still get the advantage of abrupt disconnection for mongo to recover from the general, but any deleted items don't stay for more than 1 hour (or 1 day even). I hope people have some best practice recommendations in this area.. – A V Aug 05 '15 at 17:34
  • I would personally rely on a acknowledged majority write to a replica set for this with journal turned off I think – Sammaye Aug 05 '15 at 17:36
  • Though it is normally better, if you can, to encrypt the contents so that you can house a journal and deletion is meaningless on your system – Sammaye Aug 05 '15 at 17:40
  • Thanks for your comments and response. I was expecting that since mongo defaults to journal enabled, there would be a clean "official" solution to have the ability to delete all content. Is there any other forum that I should post this question to? – A V Aug 12 '15 at 19:34
  • Maybe mongodb-user google group but they will probably say the same thing – Sammaye Aug 12 '15 at 20:49

0 Answers0