Hi,

Adding an index here should have no effect.  The reference property stores
the key for the referenced value, and retrieving it is a simple get
operation - the quickest there is.

I doubt that the timeout is occurring for just one get - if you are
operating over a large enough set of data, it is possible this is where the
error is occurring, and you should try to reduce the amount of data fetched.
With out seeing any code, it's difficult to provide more specific advice on
how you might eliminate the timeout message.

-Marzia

On Fri, Sep 19, 2008 at 11:38 PM, रवींदर ठाकुर (ravinder thakur) <
[EMAIL PROTECTED]> wrote:

>
> hi
>
> i am developing an application that uses ReferenceProperty heavily.
> When i am trying to dereference, i am getting an timeout exception.
>
> here is my data definition:
>
> class Triples(db.Model):
>      subject   =
> db.ReferenceProperty(Subjects,collection_name="subj_refs")
>      count     = db.IntegerProperty()
>
> class Subjects(db.Model):
>    subject = db.StringProperty()
>
>
> and i am taking a triple and accessing it to get the string version of
> subject and this is where i am getting an exception. For certain
> subjects, this exception occurs always.
>
> substring = triple.subject.subject
>
>
>
> Also i am not using any index. Will adding an index help in this
> case ?
>
>
> Thanks
> Ravinder Thakur
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
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