Hi Blixt, Since a query consists of an index scan followed by a batch get, internally, the batch get alone should always be faster. One possible exception is if you're doing a query that is satisfiable by the primary index - for example, querying on a key range, or only by kind with no filters. In these cases, performance is likely to be about the same, possibly slightly better for the query.
-Nick Johnson On Mon, Jul 19, 2010 at 7:26 PM, Blixt <[email protected]> wrote: > I'd like to know the performance difference between db.get()ting with > specific keys and getting the same entities using a filter. > > I did a benchmark and using a query appears to be very slightly > faster. Are there situations where the performance can differ more? > Are there other pitfalls I should watch out for? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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?hl=en.
