Hi guys,
I have a quick question, do you know if mongo can create an index on the
following data structure:
{
prices: {
price1: 0.90,
price2: 0.12,
price3: 0.13
}
}
so I would like to do index like this `ensureIndex({prices:1})` but I am
not sure will it include all prices and its values inside.
The reason why I need to lay data this way not the standard Array approach
is because I would like to be able to sort based on which price version has
been chosen i.e. `sort({prices.price:1})`.
Any ideas?
cheers