Thursday, March 18, 2010

[google-appengine] How can I efficiently retrieve entities for a list of keys? (Java)

Hi,

I'd like to use the low-level datastore API (Java) to deference a
(potentially long) list of keys into their respective Entities. I've
scoured the API and searched messages in this group, and don't see any
answers.

I primarily looked for a method on Query that takes a Collection or
Array of Keys. Didn't find it.

For now I can get by with a for loop. Ghetto but it works. I'd like to
do better.

Thanks.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to google-appengine+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

No comments:

Post a Comment