admin管理员组文章数量:1410682
I am using Spring Data Mongo and a Mongo DB, I have to join a field below, please share best approach. I have tried aggregate approach but its giving performance issue.
Collection A
{
"name1": "abcd",
"name2": ["123":{"name3":"abc123","name4":"efg456"},"456":{"name3":"ijk789","name4":"lmn012"}]
}
Collection B
{
"name5":"abc123"
}
Collection A field name3 joins with Collection B name5 field.
Input - Collection A name2 field first element - 123 in above example
Output - Collection B data
Ideal solution seems avoiding table join and calling 2 separate SQL's to optimise the performance.
本文标签: mongodbjoin combination in springdatamongo for no name list fieldsStack Overflow
版权声明:本文标题:mongodb - join combination in spring-data-mongo for no name list fields - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744953688a2634231.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论