必须在这里遗漏一些非常愚蠢的东西。此 GQL 查询:
q_count = Questions.gql('WHERE questionnaire = :1 AND deleted = False AND required = True', q).count(1000)
产生以下错误:
ERROR 2012-12-21 11:19:51,760 _webapp25.py:468] Property 'required' is not indexed
即使我的 index.yaml 包含以下条目:
- kind: Questions
properties:
- name: questionnaire
- name: deleted
- name: required
我错过了什么!