This is a pagination problem:
- items per page: 10
.
.
.
On Mar 8, 5:25 pm, djidjadji <[email protected]> wrote:
> If you sort on time why do you want to see the object that was stored
> 2000 entries ago.
> Do you also need the objects with time stamp 0..2000?
> It makes more sense to find the objects 10 days or 3 month ago.
>
> 2009/3/8 Let Delete My Apps <[email protected]>:
>
>
>
> > Does an utility exists to simplify this bad work? (or some examples)
>
> > I use this order:
> > query.order('-time')
> > .
> > .
> > .
> > On Mar 8, 4:57 pm, djidjadji <[email protected]> wrote:
> >> Make multiple queries. Use a value from the last object retrieved to
> >> select new objects with a greater value, __key__ is a good field to
> >> use, or use the field you sort on.
> >> Make sure you will stay within 30 sec wall clock time.
>
> >> 2009/3/8 Let Delete My Apps <[email protected]>:
>
> >> > Sorry but I do not understand :-(
> >> > How can I see the record 2001 ?
> >> > .
> >> > .
> >> > On Mar 8, 2:00 pm, "Sharp-Developer.Net"
> >> > <[email protected]> wrote:
> >> >> Fromhttp://code.google.com/appengine/docs/python/datastore/queryclass.html
> >> >> :
>
> >> >> The datastore fetches offset + limit results to the application. The
> >> >> first offset results are not skipped by the datastore itself.
> >> >> --
> >> >> Alexhttp://sharp-developer.net/
>
> >> >> On Mar 8, 10:56 am, Let Delete My Apps <[email protected]>
> >> >> wrote:
>
> >> >> > *** The Query Class
> >> >> > ***http://code.google.com/appengine/docs/python/datastore/queryclass.html
>
> >> >> > --> fetch(limit, offset=0)
> >> >> > offset --> The number of results to skip.
>
> >> >> > Then?
> >> >> > Why do I see this error?
>
> >> >> > BadRequestError: offset may not be above 1000
> >> >> > .
> >> >> > .
> >> >> > On Mar 8, 6:06 am, Wooble <[email protected]> wrote:
>
> >> >> > > On Mar 7, 5:05 pm, Let Delete My Apps <[email protected]>
> >> >> > > wrote:
>
> >> >> > > > Hi All,
> >> >> > > > I see this error using this code:
>
> >> >> > > > query.fetch(1000, offset=1001)
>
> >> >> > > RTFM before deleting all of your apps.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---