That is not always optimal as you might easily get into low cache hit rate. For instance, that is the reason why NDB doesn't do that automatically (which it could).
You can find more info/benchmark here: http://code.google.com/p/appengine-ndb-experiment/issues/detail?id=118#c6 On Mon, Jan 28, 2013 at 10:58 PM, Jeff Schnitzer <[email protected]> wrote: > Answered on the ofy mailing list, but just in case anyone else > stumbles across this: > > Objectify automatically converts queries for cacheable entities into a > keys-only query followed by a batch get. With cache hits, you will > pay for small operations instead of read operations. > > Jeff > > On Mon, Jan 28, 2013 at 5:48 AM, Marco Cuccato <[email protected]> wrote: >> Hello to all, >> i have a ununderstandable (for me) problem. >> >> My data model has very few entity kinds and very few entities instances at >> all (< 10). >> My app is deployed on appspot.com, so i can see resource status dashboard >> and i noticed this thing: no read and write operation is counted, but only >> small datastore operation. >> Unfortunately, this counter reach it's (unbilled) limit in a bounce of >> requests of this (Objectify) kind: >> >> ofy.load().type(Profile.class).list(); >> >> This kind of request is in my mind a Read Operation, not a Small (?) one... >> or am i wrong? >> This make Small Operations counter to reach limit with 5 requests (Profile >> has 4 instances only and it's cached - 100% cache hit on a subsequent call >> -). >> >> What is the problem? Why my app appears to do only small operations? >> Thanks >> >> -- >> 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]. >> Visit this group at http://groups.google.com/group/google-appengine?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> > > -- > 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]. > Visit this group at http://groups.google.com/group/google-appengine?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
