It happens with a particular model, and it only happens once in a
while

This is the model:

class YapUsers(db.Model):
    guid = db.StringProperty(required=True)
    create_date = db.DateTimeProperty(auto_now_add=True)
    login_date = db.DateTimeProperty(auto_now=True)
    metric = db.BooleanProperty()
    weight = db.IntegerProperty()
    height = db.StringProperty()
    age = db.IntegerProperty()
    male = db.BooleanProperty()
    activity = db.FloatProperty()

The keyname is just the guid with some prefix.

Thanks,

Guy

On Dec 21, 8:58 pm, Drew <[email protected]> wrote:
> Are you seeing timeouts with get_by_key_name consistently with a
> particular model, or randomly?
>
> On Dec 21, 2:56 am, Guy Rutenberg <[email protected]> wrote:
>
> > Hi,
>
> > I've a strange problem, I've a request that only calls get_by_key_name
> > (one time) and does no further work with the Datastore.
>
> > However, I'm getting a Timeout exception in this call. Is it normal?
> > Should I try to catch the exception and re-try the get_by_key_name?
>
> > I've thought that get_by_key_name should be one of faster Datastore
> > operations, and I've no problems using it in other places.
>
> > Thanks,
>
> > Guy
--~--~---------~--~----~------------~-------~--~----~
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