asolfre / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
0 stars 0 forks source link

Cost of only using first element in a query #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Perhaps this is documented (or else needs to be) but I am unsure what the cost 
of doing a query that is ordered and only being interested in the first result. 
(E.g. the one with the most recent time stamp) Is this very costly? If so what 
is the alternative?

Original issue reported on code.google.com by ToonT...@gmail.com on 6 Aug 2011 at 9:26

GoogleCodeExporter commented 9 years ago
I'm not sure what you're asking - expensive compared to what?  GAE does no 
in-memory sorts, just walks indexes.  The cost of fetching a single result is 
always constant.

This really isn't the kind of thing that should be discussed in a bug tracker - 
if you have questions, please start a discussion on the objectify google group 
(or the appengine-java group).

Original comment by lhori...@gmail.com on 6 Aug 2011 at 10:11

GoogleCodeExporter commented 9 years ago
Thanks. Question answered.

Sorry about posting this in the wrong place. I wonder if there is an Issue with 
the Objectify documentation. I found the getting starting and concept 
documentation very good but then couldn't find answers to questions like this 
one.

Original comment by ToonT...@gmail.com on 7 Aug 2011 at 12:35