最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

run multiple mongoDB distinct queries in a batch - Stack Overflow

programmeradmin14浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论