Cursors is the best choice, but they can only be used to paginate
forward. You will have to use your own hacks to allow  more than one
page. setRange() is more flexible, but should give you worse
performance.

On Jun 10, 3:27 pm, RAVINDER MAAN <rsmaan...@gmail.com> wrote:
> I am using JDO .So which option is best cursors or setRange?
>
>
>
>
>
> On Wed, Jun 9, 2010 at 1:47 PM, Nacho Coloma <icol...@gmail.com> wrote:
> > You should specify if you are using JDO, JPA or other. SimpleDS has a
> > PagedQuery implementation that can be ported to your own environment.
> > Look for getFetchOptions() in this link:
>
> >http://code.google.com/p/simpleds/source/browse/trunk/src/main/java/o...
>
> > This will only resolve the paging, and it's not optimal but convenient
> > (can jump to a specific page etc). For an optimal solution, use
> > cursors.
>
> > On Jun 9, 7:36 am, RAVINDER MAAN <rsmaan...@gmail.com> wrote:
> > > Hello all
> > >     how can i get my query result sorted based on creationdate and
> > > also i want to do pagination for the same.what is the best way to do
> > > that.can anybody refer me any example code?
> > > Thanks
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to
> > google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2B 
> > unsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> Regards,
> Ravinder Singh Maan

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to