Optimizing Queries with the INDEX Constraint - Edindx