Google Datastore low-level api query by key property

Posted by Keyur on Stack Overflow See other posts from Stack Overflow or by Keyur
Published on 2010-05-26T23:27:05Z Indexed on 2010/05/26 23:31 UTC
Read the original article Hit count: 264

I'm using the low-level google datastore api and I want to query by the key property and another property (let's call it category).

I need to query based on a list of keys for which I'll use the IN operator. I know that the max. number of values you can provide for the IN clause is 30.

I have 2 questions:

  1. Does the limit of 30 IN values apply to the key property as well?
  2. Do I need to create a composite index on {_key_ + category} or just on {category} for this query?

Thanks, Keyur

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about google-datastore