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

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

nginx - phpPgAdmin - log in works but I have to login again after clicking on any links -