No, deleting the Drink entity won't automatically delete all references to its key in your User entities. The only cascading delete capability supported by App Engine is automatically deleted dependent children when the parent is deleted, but this is only for owned relationships. It sounds like you're using an unowned relationship, which is more appropriate for your use case. http://code.google.com/appengine/docs/java/datastore/relationships.html#Dependent_Children_and_Cascading_Deletes
<http://code.google.com/appengine/docs/java/datastore/relationships.html#Dependent_Children_and_Cascading_Deletes>- Jason On Mon, Sep 21, 2009 at 1:04 PM, Marcel Overdijk <[email protected]>wrote: > > I have a Drinks entity which just contains a key which holds a String > to indicate the drink. Like "Coca Cola", "Pepsi", etc. > In my User entity I like to connect one or more favourite drinks of > the user. > > I'm wondering if I delete a Drink if it will be removed from the users > automatically? > > Theoretically this could be millions of users. So if need to it > manually I need to check all users and remove it. I guess this could > take more then the so important 30 secs. > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---
