He meant setRange(1001, 2000) will fail. Datastore will only let you
skip the first 1000. If you try to skip past more than 1000 you'll get
an error. In your code, you're only skipping the first 10 "setRange
(10,1500)".

Stephen

On Dec 17, 9:55 am, Fabrizio <fht...@gmail.com> wrote:
> It also works on Google App server !    Very strange....
>
> My test jsp page:
>
> ....
> <body>
> <%
> PersistenceManager pm = PMF.get().getPersistenceManager();
> Query qry = pm.newQuery("select from " + Person.class.getName() + "
> where _age > 4");
> qry.setRange(10,1500);
> List<Person> persons = (List<Person>) qry.execute();
> %>
> SIZE:<%=persons.size()%>
> <hr />
> <% for (Person p : persons) {  %>
> <%=p.getID()%>
> <%   }
>         pm.close();  %>
> <hr />
> .....
>
> On Dec 17, 4:08 pm, abhi <abhishek9...@gmail.com> wrote:
>
>
>
> > That will work only on local mode , if you use it on server you will
> > get .
> > ... threw an unexpected exception: java.lang.IllegalArgumentException:
> > offset may not be above 1000  ..

--

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