Using the native API the is Query.setKeysOnly() that "Makes this query fetch and return only keys, not full entities."
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Query.html#setKeysOnly() Is this what you are looking for? On Jul 21, 5:21 am, TL <[email protected]> wrote: > I want to run a query and receive a few keys, which I will delete > afterwards. The problem is that queries return the entire entity, > unnecessary work for the data store and the client (which is also > reflected as slower page performance and higher bills). > All I want from the query is the keys. > > In SQL it would be something like > select t.id from table t where t.column > someValue > > Is there a way to get it using the native API or in another way? I > imagine that JPA will do the same if the underlying libraries can only > return full records. -- 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.
