Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 587421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:12:37+00:00 2026-05-13T15:12:37+00:00

My app needs to do many datastore operations on each request. I’d like to

  • 0

My app needs to do many datastore operations on each request. I’d like to run them in parallel to get better response times.

For datastore updates I’m doing batch puts so they all happen asynchronously which saves many milliseconds. App Engine allows up to 500 entities to be updated in parallel.

But I haven’t found a built-in function that allows datastore fetches of different kinds to execute in parallel.

Since App Engine does allow urlfetch calls to run asynchronously, I created a getter URL for each kind which returns the query results as JSON-formatted text. Now my app can do async urlfetch calls to these URLs which could parallelize the datastore fetches.

This technique works well with small numbers of parallel requests, but App Engine throws errors when attempting to run more than 5 or 10 of these urlfetch calls at the same time.

I’m only testing now, so each urlfetch is the identical query; since they work fine in small volumes but start failing with more than a handful of simultaneous requests, I’m thinking it must have something to do with the async urlfetch calls.

My questions are:

  1. Is there a limit to the number of urlfetch.create_rpc() calls that can run asynchronously?
  2. The synchronous urlfecth.fetch() function has a ‘deadline’ parameter that will allow the function to wait up to 10 seconds for a response before failing. Is there any way to tell urlfetch.create_rpc() how long to wait for a response?
  3. What do the errors shown below mean?
  4. Is there a better server-side technique to run datastore fetches of different kinds in parallel?

    File “/base/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py”, line 501, in get_result
    return self.__get_result_hook(self)
    File “/base/python_lib/versions/1/google/appengine/api/urlfetch.py”, line 331, in _get_fetch_result
    raise DownloadError(str(err))
    InterruptedError: (‘The Wait() request was interrupted by an exception from another callback:’, DownloadError(‘ApplicationError: 5 ‘,))

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T15:12:38+00:00Added an answer on May 13, 2026 at 3:12 pm

    Since App Engine allows async urlfetch calls but does not allow async datastore gets, I was trying to use urlfetch RPCs to retrieve from the datastore in parallel.

    The lack of async datastore gets is an acknowledged issue:

    http://code.google.com/p/googleappengine/issues/detail?id=1889

    And there’s now a third-party tool that allows async queries:

    http://code.google.com/p/asynctools/

    “asynctools is a library allowing you to execute Google App Engine API calls in parallel. API calls can be mixed together and queued up and then all are kicked off in parallel.”

    This is exactly what I was looking for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 299k
  • Answers 299k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I am going with : out = `/my-other-script.sh #{email.todo} 2>&1`… May 13, 2026 at 7:42 pm
  • Editorial Team
    Editorial Team added an answer Have a look at String's replaceAll(...) method. Note that Java… May 13, 2026 at 7:42 pm
  • Editorial Team
    Editorial Team added an answer EDIT 2: From looking at the source code it seems… May 13, 2026 at 7:42 pm

Related Questions

My app needs to keep an index of files in which the files are
I'm designing a RESTful Web app that will provide an authentication system for several
So I'm having to run someone else's excel app on my PC, and I'm
I have a WCF app that accepts requests to start a job. Each job
I'm working on an iPhone project that needs to receive data from a PHP

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.