test

On Sep 16, 11:38 pm, scottxu <[EMAIL PROTECTED]> wrote:
> I was actually confused by the limit parameter. In the document, it's
> said "either no limit is specified". When I called it without limit
> parameter, it raised an exception. The document says:
>
> Note: fetch() returns a maximum of 1000 results. If more than 1000
> entities match the query, and either no limit is specified or a limit
> larger than 1000 is used, only the first 1000 results are returned by
> fetch().
>
> Scott
>
> On Sep 13, 11:07 am, ryan <[EMAIL PROTECTED]> wrote:
>
>
>
> > thanks for the post! in general, that's right. using fetch() is faster
> > and more efficient than iterating over query results, since fetch()
> > pulls all of the results from the datastore at once.
>
> > i'm curious about your first fetch() example, though:
>
> >   result=self.gql("where character = :1", self.key()).fetch()
>
> > the limit parameter for fetch() is required:
>
> >  http://code.google.com/appengine/docs/datastore/queryclass.html#Query...
>
> > so that example raises an exception. did you maybe just not notice
> > that the exception for that example was an error, not a timeout?- Hide 
> > quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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