在 Datastore 中将切片设置为 noindex 没有任何效果

Setting a slice as noindex in Datastore does not take any effect

给定,

type Person struct {
 Name string `datastore:"name"`
 Pets []Pet `datastore:"pets,noindex"`
}

type Pet struct {
 Age int `datastore:"age"`
}

数据存储仍然索引 Pets 字段和 Pet 中的所有字段。

设置noindex只会影响新实体。之前保存的实体将保持索引状态,直到您覆盖它们。