Skip to main content

Home/ GAE - Datastore/ Group items tagged index

Rss Feed Group items tagged

Esfand S

how to select first entity from a BigTable - Google App Engine | Google Groups - 0 views

  • In Java you can use Query cursors to [1] limit your results.  As far as aggregate functions (like MIN and MAX) you can use [2] indexes to achieve the similar result (ie. order by age and get the top result) [1] http://code.google.com/appengine/docs/java/datastore/queriesandindexe... <http://code.google.com/appengine/docs/java/datastore/queriesandindexe...> [2] http://code.google.com/appengine/docs/java/datastore/queriesandindexe... <http://code.google.com/appengine/docs/java/datastore/queriesandindexe...> On Sat, Dec 4, 2010 at 10:31 AM, Jeff Schwartz <jefftschwa...@gmail.com>wrote:
  • Objectify is a thin wrapper library around the native low level java datastore api. It adds numerous convenience methods but doesn't stray from the low level api. In addition, it allows you to define your models as pojos using java annotations for things like numeric and string key ids, properties which are keys of a parent, etc. I wouldn't think of using anything else. The low level api examples I just gave you map very closely to how you would accomplish the same thing in Objectify. You can read more about Objectify on their wiki at http://code.google.com/p/objectify-appengine/wiki/IntroductionToObjec....
1 - 3 of 3
Showing 20 items per page