Given,
type Person struct {
Name string `datastore:"name"`
Pets []Pet `datastore:"pets,noindex"`
}
type Pet struct {
Age int `datastore:"age"`
}
Datastore still indexes Pets
field and all fields in Pet
.
Given,
type Person struct {
Name string `datastore:"name"`
Pets []Pet `datastore:"pets,noindex"`
}
type Pet struct {
Age int `datastore:"age"`
}
Datastore still indexes Pets
field and all fields in Pet
.
Setting noindex
will only affect new entities. Entities that have been previously saved will remain indexed until you over-write them.