efficient searching using appengine datastore ancestor paths
问题 We have a mulch-tenancy and I need to search and fetch in a huge appengine datastore based on an indexed attribute range and client id. Does usage of Ancestor Paths make it efficient ? Alternatively Same can be done using an additional filter e.g. to get the top 100 salaries via objectify Key<Clients> clientIdKey = Key.create(Clients.class, 500) ofy().load().type(Salaries.class).ancestor(clientIdKey).order("-salary").limit(100).list() Alternatively just ofy().load().type(Salaries.class)