Objectify documentation says that Objectify will not create an index for a field which is not annotated with @Index annotation. However, I can see that index is being create for entity fields which are arrays, or maps.
I'm using Objectify v6.0.4 to store data in GAE Datastore.
I tried putting @Unindex annotation to the filed I don't want to index, but it didn't worked.
For example, when I save tho following entity and check it in Datastore I see that index has been created for fields.
@Entity
public class Foo {
@Id
public Long id;
public String name;
public Field[] fields;
}
static class Field {
public String type;
public String label;
public String name;
}
Based on Objectify documentation I'm expecting that datastore index will be created for the fields with @Index annotation only.
Is it Objectify issue, or GAE Datastore issue?
fields- and what would that mean, since indexes are only created on leaf nodes (type,label,name)? - stickfigurefieldsis not0Band keeps growing as I add new entries. - Kiryl Mayorchyk