I have a lot of indexes, and currently it is slow because when a query comes in from the user, it sequentially goes through each of these results and then appends the results.
indexes = search.get_indexes(index_name_prefix=userDomain, limit=200)
domain_indexes = [index for index in indexes if userDomain==str(index.name).split(":")[0] ]
for index in indexes:
response.append(responseListItem)
This makes it really slow, the question is whether I can farm these out and do them in parallel, and then afterwards coalesce the results and send the response back to the user?
App Engine Search: How can I search multiple search indexes in parallel?
101 Views Asked by Debnath Sinha At
1
There are not yet documented features to make async calls in Search API, just like with datastore:
https://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/api/search/search.py#3636