I have a popular app making around 15 to 30 calls per minute. CPU
usage is high but within limits.

Sample usage: 500 4027ms 35cpu_ms 16api_cpu_ms 0kb
High:  500 4291ms 820cpu_ms 645api_cpu_ms

I get these errors a few times every hour. Please note that it is a
GET call.

   q = Question.get_by_id(int(qid))
  File "/base/python_lib/versions/1/google/appengine/ext/db/
__init__.py", line 1001, in get_by_id
    return get(*keys)
  File "/base/python_lib/versions/1/google/appengine/ext/db/
__init__.py", line 1182, in get
    entities = datastore.Get(keys)
  File "/base/python_lib/versions/1/google/appengine/api/
datastore.py", line 257, in Get
    raise _ToDatastoreError(err)
Timeout

Is this an app engine problem ? Or it is because the other calls are
trying to write into this entry but this call is trying to read. I see
a lot of wait time (in the profiling data).

Based on your response, I will go ahead and try to change my db and
the code.

Pls note that I have a user db and question db. When A answers
question Q posted by user B, I update A, B and Q. Will really
appreciate your response. I am a big fan of app engine and using app
engine a lot !

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


Reply via email to