We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
跨集合查询应该用aggregate框架,之前我一直不会用。。 参考https://www.mongodb.com/blog/post/quick-start-golang--mongodb--data-aggregation-pipeline 同时要加商合理的index,之前因为数据量少一直没怎么加 然后mongodb的返回值其实可以直接用bson.M(就是map[string]interface{})接收,方便很多,以后model也不用写json tag了
The text was updated successfully, but these errors were encountered:
查了一些资料,我不确定把多个api替换成一个aggeregate查询是否有意义了。。也许这个不需要改呢
Sorry, something went wrong.
Chronostasys
No branches or pull requests
跨集合查询应该用aggregate框架,之前我一直不会用。。
参考https://www.mongodb.com/blog/post/quick-start-golang--mongodb--data-aggregation-pipeline
同时要加商合理的index,之前因为数据量少一直没怎么加
然后mongodb的返回值其实可以直接用bson.M(就是map[string]interface{})接收,方便很多,以后model也不用写json tag了
The text was updated successfully, but these errors were encountered: