Indexes on more than one field
Brought to you by:
olivier_smadja
It would be very good to be possible to create "coumpound" index for more fields on more classes?
Suppose this model:
public class Person {
private Address address;
}
public class Address {
private String city;
}
The index could be created like this:
db.getClassRepresentation(Person.class).addIndexOn("someindex", new String[]{"address.city"}, true);
It is very common IMHO to filter objects not only by the queried object fields but also by the references object's fields. It is almost unpossible to query large data sets without using indexes with regards to response time.
Ales