Reputation: 13645
I just upgraded my Mongo on local machine to 2.2.4 and I am using it with my .Net environment. Now it was my turn to find out which Mongo-C# driver works best for Mongo 2.2.4 and I did searched a lot of forums including 10gen site but there is no official statement from 10gen saying which version of Mongo c# driver would work best for 2.2.4.
This is little confusing for me. Although the current Mongo-c# driver works fine but is it the best driver to work with Mongo? There is no answer to that.
Any suggestions? My current Mongo-c# driver is 1.6.1.4678.
thanks :)
Upvotes: 1
Views: 646
Reputation: 65363
The MongoDB Wire Protocol has not changed for some time and MongoDB's design allows every MongoDB driver to support every command. The 1.6 C#/.NET driver will continue to work for the foreseeable future, but you may be missing out on ongoing driver improvements such as bug fixes, command helpers, and support for newer MongoDB server features. The C#/.NET driver currently has very active testing & development.
The 1.7 C#/.NET driver deprecates SafeMode and replaces it with WriteConcern. There is also a new MongoClient class which was introduced across the MongoDB drivers in November, 2012. These changes are unlikely to affect your current application, but newer tutorials and documentation will make reference to the current defaults and behaviour.
As far as the "best" driver, that will depend on whether you actually need any to take advantage of helpers for newer features and defaults. Given your current 1.6.1 driver is just over six months old I would suggest testing an upgrade to the latest version. There have been significant improvements and it can be easier to upgrade incrementally rather than trying to figure out the diffs between many major versions.
If you are going to upgrade now, I would chose the latest driver available that has been out for a few weeks (currently the 1.8.1 release on April 9th).
You can browse a list of the changes between releases by searching the CSHARP project in the public MongoDB Jira issue tracker. There is a Versions tab which allows you to see issues for specific versions, or you can do a custom search for a list of fixVersions.
Upvotes: 3