--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/O7xPE09_GIwJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/kJ4oHDPjEPoJ.
IN
operator compares value of a property to each item in a list. The IN
operator is equivalent to many =
queries, one for each value, that are ORed together. An entity whose value for the given property equals any of the values in the list can be returned for the query.Note: The IN
and !=
operators use multiple queries behind the scenes. For example, the IN
operator executes a separate underlying datastore query for every item in the list. The entities returned are a result of the cross-product of all the underlying datastore queries and are de-duplicated. A maximum of 30 datastore queries are allowed for any single GQL query.
"""
If you experience a different behavior than the documented one I encourage you to fill a detailed defect on the public issue tracker (with Component-Datastore): https://code.google.com/p/googleappengine/issues/entry?template=Other%20defect
Or a documentation defect (with Component-Documentation) if you think the documentation could be improved.
Feel free to link the issue(s) on that thread, and I will make sure (after acknowledging them) that they are escalated to the right team.
Thanks in advance for your contributions.
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/kJ4oHDPjEPoJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Thanks Johan, but I don't think there is any real defect here - 'IN' does work as documented - it's just not very useful as currently implemented. Instead of being 'IN' as in other DBs, it's just newquery(EQUALS) or newquery(EQUALS) or ...
Obviously it's a pretty bad idea to use those kind of queries! Most of AppEngine DS tries to stop you from making bad queries that don't perform well, so it's just a bit out of place and I'm sure it has blindsided a lot of people so far.
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
Hey Johan,
I've filed it as a feature request : http://code.google.com/p/googleappengine/issues/detail?id=8627&thanks=8627&ts=1357398564
However, I very much doubt to ever see this request fulfilled!