App Engine NDB query with multiple inequalities?

主宰稳场 提交于 2019-12-04 16:04:34

According to the docs (for python),

Limitations: The Datastore enforces some restrictions on queries. Violating these will cause it to raise exceptions. For example, combining too many filters, using inequalities for multiple properties, or combining an inequality with a sort order on a different property are all currently disallowed. Also filters referencing multiple properties sometimes require secondary indexes to be configured.

If you check back in a few months, this may change. GAE keeps changing pretty quickly.

For now, though, you'll have to make multiple queries and combine them in your code.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!