我的 gquery 是这样的:
SELECT Distinct Path,Value FROM Entity WHERE PID="chichi"
我得到错误
GQL query error: Your Datastore does not have the composite index (developer-supplied) required for this query.
我知道我正在使用具有相等查询的投影,我在 index.yaml(复合索引文件)中添加了路径、值和计划 ID。如何在 gcloud 数据存储上执行此查询?
我在 index.yaml 文件中包含了所有可能的组合
index.yaml:
indexes:
- kind: Entity
properties:
- name: PID
- name: Value
- name: Path