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?
102 Views Asked by Debnath Sinha At
1
There are 1 best solutions below
Related Questions in GOOGLE-APP-ENGINE
- AngularJS, Google App Engine and URLrewrite
- Optimizing for Social Leaderboards
- Getting entity with a join table GAE
- Custom exception message from google endpoints exception
- Unable to deploy an application module on AppEngine
- How to use CachedRowSet in Google App Engine?
- How can I create a docker image from the current system?
- Google datastore multiple values for the same property
- Google Cloud Storage sort directory by name
- Adding custom domain for Google App Engine WordPress site
- Arguments to Endpoints method change order
- Could someone bring Google OAuth2 for Cloud DNS via Rest to light?
- DNS_PROBE_FINISHED_NXDOMAIN on Google App Engine website
- GAE python - client_secrets.json 'File not found' - app.yaml error?
- Images not working in Google App Engine email
Related Questions in SEARCH
- SQL weight rows by formula
- If Input is focused trigger X else trigger Y
- laravel full-text search with multiple keywords together
- Login form by using a new database, made in VB
- How to search for overloaded methods in a class
- Modifying Tries code in Java
- Doing a multi-column search for an item in a listView control using c#
- T SQL wildcard searching for a zip code
- django rest framework search filter all fields
- how to filter search result with dropdown list in php
- PHP/MySQL search... show all data by default, or show matched data
- Oracle multiple REPLACE options in REGEXP_REPLACE
- Is there a way to get all complete sentences that a search engine (e.g. Google) has indexed that contain two search terms?
- How to search a unknown composite key for dictionary in O(1) in c#
- android java search listview clickedItem
Related Questions in TASK-QUEUE
- How do I pass a generator to celery.chord instead of a list?
- Optimizing Push Task Queues
- Is it possible to execute a task inside Google App Engine taskqueue?
- Check if a queue is empty in Google App Engine
- Mechanisms for creating long-running process
- Deferred Task Request deadline exceeded but work never started
- Laravel - Turn part of a function into a queued statement
- Background processes in Node.js
- app modifying the autolayout engine from a background thread
- Where to define Celery subtask queues
- laravel queue (retry jobs 5 times) & mark job as failed "manually"
- GAE TaskQueue hitting Endpoints API
- Java Google App Engine Task Queue freezes / stalls
- How can I check whether I have already enqueued a task before?
- Pausable & resumable async task queue
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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