The question has been previously asked in another thread (MongoDB - Multi-key and Compound) and there is currently no solution from MongoDB. Has anyone developed a successful workaround either through indexing or document design?
Example document:
{
timestamp: Timestamp(1234123123,0),
values : [
{field1:"somevalue", field2:"otherValue"},
{field1:"somevalue2", field2:"otherValue2"}
]
}
Our index specifically is: timestamp : -1, values.field2:1 and the explain shows that the lower bound of the timestamp is ignored.