阅读背景:

mongoid'with'选项行为随着> 6.0而改变

来源:互联网 

Let me start with my use case. I have two different instance of mongoid database hosted per region based with similar model. And depending on user input, the code gets the results from respective mongo instance in my rails app. I am not sure what is the best way of doing this however I used Model.with approach and configured two clients in mongoid.yml.Let me start with my use case. I have two diffe




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: