java - Soft Delete Procedure in MongoDB -


we going develop multi tenant based project, based on java spring boot @ backend , mongodb database.

i want ask there procedure make soft delete other insert attribute true/false or 0/1 ?

thanks help...

if don't want delete or use attribute isdeleted or similar name. have move deleted documents collection namely deletedcollections , hard delete current document current collection. methodology can useful manage these unwanted or deleted data current collection.

  1. first create collection may in server or file system named deletedcollection
  2. first insert document collection deleted
  3. then delete current document current collection

this way useful reach deleted or archived data in time.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -