Better error reporting when a predicate value is undefined
Alternative secondary index structure idea