i suspect the docs meant to say "1 Read Operation per row" i don't know
how you could ever get to less then 1 read operation per row.
On Thursday, December 17, 2015 at 5:53:07 PM UTC-8, NAyAN Jain wrote:
>
> I am trying to reduce the datastore cost by using Projection. I have read
> that a Projection Query costs only 1 Read Operation but in my case the
> Projection cost goes more than 1. Here is the code:
>
> Query<Finders> q =
> ofy().load().type(Finders.class).project("Password","Country");
> for(Finders finder:q)
> {
> resp.getWriter().println(finder.getCountry()+"
> "+finder.getPassword());
> }
> On executing this, the q object contains 6 items and to retrieve these 6
> items it takes 6 Read operations as shown in Appstats. Can anyone tell me
> what's wrong over here ?
>
--
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/14da2fa4-115f-484e-8cdc-c319706009a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.