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/c7efef1d-617d-4f63-9ecf-16b1bc73241f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.