Answer the question
In order to leave comments, you need to log in
How to properly optimize a query in MongoDB?
Documents have the following structure:
{
"oneCategory" : "...",
"twoCategory" : "...",
"threeCategory" : "...",
"fourCategory" : "...",
"fiveCategory" : "...",
"count" : 5
}
Answer the question
In order to leave comments, you need to log in
monga now has facet search built into the aggregation framework: $facet
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question