You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deletion is the most complicated process in Lesan:
remove if any documents created is based on this document.
remove all other documents is based on removed documents.
update all other documents it has relation with removed documents.
remove the actual document.
update all other documents it has relation with removed actual document.
We can also have a series of strategies to implement soft delete, for example appending, subtract or none.
in such a way that:
If the strategy is on subtract, isDeleted will be true on the requested document as well as the documents that were created based on this document, but we will find the documents that are related to the deleted documents and have stored them in an embedded form. To be able to remove the deleted documents from their embed list.
If the strategy is on append, isDeleted will be true on the requested document as well as the documents that are based on this document, and we will also find the documents that are related to the deleted documents and have stored them as an embed. We also set isDeleted to true for deleted documents in their embed list, and we will not consider the limit of the embed list either.
If the strategy was set to none, the documents will be deleted as hardDelete.
The text was updated successfully, but these errors were encountered:
deletion is the most complicated process in Lesan:
We can also have a series of strategies to implement soft delete, for example appending, subtract or none.
in such a way that:
If the strategy is on subtract, isDeleted will be true on the requested document as well as the documents that were created based on this document, but we will find the documents that are related to the deleted documents and have stored them in an embedded form. To be able to remove the deleted documents from their embed list.
If the strategy is on append, isDeleted will be true on the requested document as well as the documents that are based on this document, and we will also find the documents that are related to the deleted documents and have stored them as an embed. We also set isDeleted to true for deleted documents in their embed list, and we will not consider the limit of the embed list either.
If the strategy was set to none, the documents will be deleted as hardDelete.
The text was updated successfully, but these errors were encountered: