I'm using gopkg.in/mgo.v2 for mongodb queries using GOLang.
Earlier, Mongodb version was 3.0 and now I'm planning to upgrade it to 3.6.
Are they compatible with each other?
Related
I am currently with Parse-server 2.8.4 and mongo driver 3.1.0 to support a mongoDB 4.0 cluster hosted on MongoDB Atlas.
It was announced that my cluster would be automatically upgraded to mongoDB 4.2 by Atlas.
I am wondering if the Parse-server 2.8.4 supports mongoDB 4.2? If not, which version of Parse-server and mongo driver should I use?
I am hesitant to upgrade to Parse-server 3.0 as my web app is in production and it is said upgrading from Parse 2 to 3 requires a significant amount of change.
When I updated my app's Node modules, MongoDB updated from 2.x to 3.x and I got a Dependency Error saying Mongoskin requires "mongodb":"^2.0". So I removed MongoDB 3.0 and installed 2.2.36, and all is fine.
Am I correct then to infer that Mongoskin, and its driver, will not cooperate and correctly operate against MongoDB 3.x or 4.x ? Or is it just that I cannot do the newer modern MongoDB 3.x/4.x operations but I can still do what I have been doing with Mongoskin to date?
Which version of spring-boot is compatible with MongoDB 4.0?
Is there an advisable way to use spring-boot 2.0.5 RELEASE with MongoDB 4.0?
Or better to use spring boot 2.0.5 which has mongo driver version 3.6.x with MongoDB 3.6`?
I think it is not strictly needed to have the latest driver and spring data mongo in order to use a mongodb 4.0; However in the spring data changelog you can see the various changes regarding the driver and DB update, there you can see that in version 2.1.0.RC1 they started adding support for version 4.0 of the database as well as in version 1.10.15.RELEASE. Latest GA version 2.1.0.RELEASE documentation has updated to MongoDB Java Driver 3.8.2.
The java driver and Spring will always be a bit behind with new functionalities introduced by each version of MongoDB. So my suggestion if you are starting now is to use the latest 2.1.0.RELEASE (https://projects.spring.io/spring-data-mongodb/#quick-start)
Edit:
How Mongo was before version 4.0 how-acid-mongodb
ACID in mongo 4.0 multi document transaction
Spring data mongo support for transactions
I recently upgrade the version of mongodb. My previous version was 3.2
When I write on console;
mongod --version
db version v3.4.2
But I cannot use operators that comes with new version of mongodb (3.4) in MongoChef.
For example this one; https://docs.mongodb.com/manual/reference/operator/aggregation/indexOfBytes/
MongoChef doesn't complete or when I try to execute the string it throws an erroras;
the selection: invalid and cannot be executed.
Should I upgrade MongoChef as well? Why I cannot use the operators in version 3.4 while my mongodb version is it.
Check your MongoChef Version as only MongoChef vertion 4.5 + are compatible with 3.4 according to the release notes.
With that, I would recommend upgrading to the latest MongoChef release 5.1 - https://studio3t.com/download/
MongoChef is now called Studio 3T now.
We are planing to migrate mongoDB from 3.2 to 3.4 but we do not want to use new features like decimal type and collation.
Is it ok to use java driver version 3.2 to work with MongoDB 3.4?
According to official JAVA driver computability table it is not OK and you should be running version 3.4 of the driver.