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 google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
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.
No I haven't used the cache annotation but still the cost and datastore read are same as a normal query.
I am looking for a way to reduce read operations.
--
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 google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
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/604573fe-8f5b-4763-a742-358eef9f06ca%40googlegroups.com.
Run the equivalent query with the low-level API. If it produces the same unexpected results, it's Google's issue. If it fixes the problem, it's mine. Other than a potential hybridization issue I can't imagine what Objectify could be doing wrong since it's just adding projections to an underlying low-level Query object.Jeff
On Fri, Dec 18, 2015 at 5:50 PM, NAyAN Jain <gamern...@gmail.com> wrote:
No I haven't used the cache annotation but still the cost and datastore read are same as a normal query.
I am looking for a way to reduce read operations.
--
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 google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
Jeff's analysis is on-point here. It seems certainly possible that Ofy could be transforming the query. The only way is to test, and the methods to do so have been given. If this turns out to be a Datastore problem, rather than just Ofy, a post should be made to the Public Issue Tracker. Someone from Cloud Platform Community Support will triage the issue shortly after it appears.
On Saturday, December 19, 2015 at 10:01:06 AM UTC-5, Jeff Schnitzer wrote:
Run the equivalent query with the low-level API. If it produces the same unexpected results, it's Google's issue. If it fixes the problem, it's mine. Other than a potential hybridization issue I can't imagine what Objectify could be doing wrong since it's just adding projections to an underlying low-level Query object.Jeff
On Fri, Dec 18, 2015 at 5:50 PM, NAyAN Jain <gamern...@gmail.com> wrote:
No I haven't used the cache annotation but still the cost and datastore read are same as a normal query.
I am looking for a way to reduce read operations.
--
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 google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.