[appengine-java] Re: Selecting more than 1000 rows ?

2009-10-20 Thread dflorey

You'll need to add an index property to your entity and specify this
index in your query.

On 20 Okt., 07:48, Sreekanth Raju sraj...@gmail.com wrote:
 ok, let's say i want to retrieve entity from result list starting from index
 1100 to 1150.

 how to achieve this ?
--~--~-~--~~~---~--~~
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-java@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
-~--~~~~--~~--~--~---



[appengine-java] Re: Selecting more than 1000 rows ?

2009-10-20 Thread leszek

1000 is a hard limitation on every query. So if you have 5000
entitties and use range 999-1500 you will get only one record. The
only way is to iterate through entities using JDO extend.
--~--~-~--~~~---~--~~
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-java@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
-~--~~~~--~~--~--~---



[appengine-java] Re: Selecting more than 1000 rows ?

2009-10-19 Thread Jason (Google)
You can use setRange if you want to retrieve entities from a specified
offset from the start of the results list, which comes in handy for paging.
You can also use it to set a limit, capping the number of returned results.

- Jason

On Wed, Oct 14, 2009 at 3:22 AM, Sreekanth Raju sraj...@gmail.com wrote:

 then what is the use of

 query.setRange()


 


--~--~-~--~~~---~--~~
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-java@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
-~--~~~~--~~--~--~---



[appengine-java] Re: Selecting more than 1000 rows ?

2009-10-19 Thread Sreekanth Raju
ok, let's say i want to retrieve entity from result list starting from index
1100 to 1150.

how to achieve this ?

--~--~-~--~~~---~--~~
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-java@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
-~--~~~~--~~--~--~---