End cursors allow you to set a query to say, "stop this query when you get
to this cursor". Docs will be up soon. The Javadocs are already up:

http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/FetchOptions.html

For instance, let's pretend our index references the following keys:

a, b, c, d, e, f, g

You create 3 cursors

cursor1 -> a
cursor2 -> d
cursor3 -> g

You can now create queries that say, "start at cursor1 and end at cursor 2"
and "start at cursor 2 and end at cursor 3". This is most useful for
breaking up work in task queues. It has the advantage over using offsets
such as "start at cursor1 and get the next N elements" because if we insert
new keys  b2 and b3 such that your index looks like this:

a, b, b2, b3, c, d, e, f, g

Keys between cursor1 and cursor 2 now reference b2 and b3. You can now break
up work and be insert-proof.

On Thu, Jul 1, 2010 at 12:28 AM, Nacho Coloma <[email protected]> wrote:

> "The datastore now supports both end cursors."
>
> I have checked out the documentation and cannot find what this is
> about. Anyone?
>
> On Jul 1, 1:10 am, Ikai Lan <[email protected]> wrote:
> > Hey everybody,
> >
> > We've released the 1.3.5 SDK. Blog post here:
> >
> > http://googleappengine.blogspot.com/2010/06/app-engine-sdk-135-releas...
> >
> > The big announcements are the raising of the Task Queue rate, Python
> > precompilation, and new Blob features. You can get it from the downloads
> > page:
> >
> > http://code.google.com/appengine/downloads.html
> >
> > Release notes are below:
> >
> > Java
> > ---------------
> > - Ability to configure the Task Queue storage limit with the
> > total-storage-limit field in the queue.xml file.
> > - Task Queues now support up to 50 qps per queue, up from 50 qps per app.
> > - Developers can programmatically access Blobs with BlobstoreInputStream,
> > which provides an InputStream view of a blob in Blobstore.
> > - Bulkloader transform helpers for lists and hierarchical keys were
> added.
> > - remote_api_shell commands can be sent over HTTPS or HTTP.
> > - Admin Console logs now include information on request time latency.
> > - The datastore now supports both end cursors.
> > - Fixed an issue where requesting /appstats would not properly direct to
> > /appstats/.
> > - Fixed an issue with inconsistent URL mappings between the SDK and
> > production.
> > -http://code.google.com/p/googleappengine/issues/detail?id=2598
> >
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
> > Blog:http://googleappengine.blogspot.com
> > Twitter:http://twitter.com/app_engine
> > Reddit:http://www.reddit.com/r/appengine
>
> --
> 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
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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 [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-java?hl=en.

Reply via email to