Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 22nd, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Queries without extra index in GAE
  2. public class Person{
  3.     private int born;
  4.     private String sex;
  5.     private List<String> likes;
  6.     //some other fields
  7.     ...
  8. }
  9.        
  10. select from Person where
  11. likes IN ("potatoes", "fish") AND
  12. born IN (1975,1976....2011)
  13.  
  14. select from Person where
  15. sex = 'female' AND
  16. likes = "carrots" AND
  17. born IN (1900,1901....1980)