I’m with app engine and using the java low level api, and I want to retrieve a group of entities having its ids. What’s the way to do so? I could fetch one by one but there must be a better way.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you’re looking for this method, specifically in the following overload:
to which you pass any iterable collection of
Keys and get back a map from those keys (more precisely, the subset of those keys that do correspond to entities) onto the corresponding entities. (To make aKeyfrom anidyou use a KeyFactory — variouscreateKeyoverloads, depending on parent or no parent). Back toget, there’s a transactional overload for it too, if you do need to work in a transaction.