-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:
I would like to take a persisted document, and delete/rebuild some of the embedded documents inside it.
So far when I call self.comments.clear or self.comments = [] to get started, it actually does a database query right away on this. And if my process dies or gets killed in the next moment, those embedded docs are lost.
What I'd like to have happen is that I delete/rebuild all the embedded docs in memory, then call one save at the end (atomically) on the parent where all the updated children get persisted together.
Is this possible?