No there is no such thing as ndb is not a relational database and if you want to achieve the same you will have to do that on your own. There is no specific way to implement this as it depends on your actual needs. As a general tip you might want to use transactions to make sure that all the related records will be gone before deleting the parent.
In gae ndb, is there a similar functionality like cascading delete in relational database?
-
18-10-2022 - |
Question
Is cascading delete possible in gae ndb? If so, how to implement it?
No correct solution
OTHER TIPS
I've found ndb model
has the _pre_delete_hook
and _post_delete_hook
which could be used to treat this problem. _pre_delete_hook
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow