For example, this query:

  (isToday==true || isToday==false) && (isThisWeek==true ||
isThisWeek==false)
  && isThisMonth==true

in fact contains 4 sub queries:

  (isToday==true) && (isThisWeek==true) && isThisMonth==true
  (isToday==true) && (isThisWeek==false) && isThisMonth==true
  (isToday==false) && (isThisWeek==true) && isThisMonth==true
  (isToday==false) && (isThisWeek==false) && isThisMonth==true

If use the AnyValue filter, only one sub query is needed:

  AnyValue (isToday) &&  AnyValue(isThisWeek) && isThisMonth==true

BTW, the reason of using one query instead of 4 queries is to decrease
the number of indexes.

-- 
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].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to