we have a mongoDB collection for store data, and need to pull out distinct values on couple of fields, examples:
db.stores.distinct("ownership_name", query)
db.stores.distinct("status", query)
db.stores.distinct("entity_name", query)
...
we have to run multiple queries to get those result, is there a way i can batch them together and get all results back in one run? we use java driver.
thanks