AppEngine - JDO 查询!包含

AppEngine - JDO query !contains

我正在使用 Google App Engine 和 JDO。 尝试获取字符串集合不包含特定字符串的实体:

!viewers.contains('aaa')
"App Engine datastore does not support operator NOT"

有什么解决方法吗?

GAE 查询总是在索引上执行。但是,does not include string 查询需要 table 扫描。这样的查询在 GAE 上是不可能的。