Say we have the following docs:
{a: 1, b: 2},
{a: 2, b: 0},
{a: 3, b: 1}
I want a query that will return:
[0, 1, 2, 3]
I want to know if there is a way to do this faster than:
- just making 2 queries, one selecting
a, the other selectingbthen merging in my application. - using map reduce(which was reaaaaly slow compared to the previous method)