Sorry, no idea. Max or Andy probably know.
Peter Recore wrote:
>> 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 re
> 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. Bes
> 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
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 Nov 7, 11:05 am, Peter Recore wrote:
> Is there a way to delete an entity without having to
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 wrote:
>
> Is there a way to delete an entity wi
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 wrote:
>
> Hav
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
> o