.NET best practices for MongoDB connections?

前端 未结 6 923
臣服心动
臣服心动 2020-12-12 14:40

I\'ve been playing with MongoDB recently (It\'s AMAZINGLY FAST) using the C# driver on GitHub. Everything is working just fine in my little single threaded console app that

6条回答
  •  执笔经年
    2020-12-12 14:48

    The thing to remember about a static connection is that it's shared among all your threads. What you want is one connection per thread.

提交回复
热议问题