[appengine-java] Re: Delete without getting, using JDO

2009-11-10 Thread Peter Recore
Not really. Yeah, I was afraid of the relations part. In the use case I'm dealing with, there are no relations, but maybe the JDO layer can't infer that. For now I won't worry about it. If it turns out the fetches related to these deletes are a bottleneck, I will use the low level API.

[appengine-java] Re: Delete without getting, using JDO

2009-11-08 Thread datanucleus
Is there a way to delete an entity without having to fetch it from the datastore first? Not really. The issue is that an object can have relations and so, since these can cause cascade of operations, it typically has to be loaded into memory first. The only situation where it wouldn't need to

[appengine-java] Re: Delete without getting, using JDO

2009-11-07 Thread Rusty Wright
Have a look at the Query class; you can use the id/key in the query. http://xrl.in/3m1e http://xrl.in/3m1f Peter Recore wrote: Is there a way to delete an entity without having to fetch it from the datastore first? Ideally, there would be a deleteObjectById analogue to getObjectById on

[appengine-java] Re: Delete without getting, using JDO

2009-11-07 Thread Esteban Ignacio Masoero
And you can also look here: http://code.google.com/intl/en/appengine/docs/java/datastore/queriesandindexes.html#Delete_By_Query To google guys: By the way, there's a typo in the last link of that paragraph, which doesn't have an anchor. On Sat, Nov 7, 2009 at 3:29 PM, Rusty Wright

[appengine-java] Re: Delete without getting, using JDO

2009-11-07 Thread LUAI KASSAR
You can use DatastoreService.delete(Key...) http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/DatastoreService.html#delete(com.google.appengine.api.datastore.Key...) On Sat, Nov 7, 2009 at 11:05 AM, Peter Recore peterrec...@gmail.com wrote: Is there a way to