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.
- first create collection may in server or file system named deletedcollection
- first insert document collection deleted
- then delete current document current collection
this way useful reach deleted or archived data in time.
Comments
Post a Comment