top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Mongodb: compatability of cxx legacy driver

+1 vote
228 views

My production site runs mongodb 2.4.9, if I use mongo-cxx-legacy driver and only use the features compatible with mongodb 2.4 in consumer code, does it work well? Are there any potential risks or issues or limitations?

posted Mar 21, 2016 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

We do test the Legacy C++ driver against MongoDB 2.4, and it should work just fine. Attempts to use features not supported by MongoDB 2.4 should result in an error. I'm not aware of any other particular risks or limitations.

Also, I strongly recommend that you look into whether you can use the new C++11 driver, which was promoted to stable last month. It also supports MongoDB 2.4, and offers a much better interface and implementation than the legacy C++ driver.

answer Apr 6, 2016 by Manikandan J
Similar Questions
0 votes

My collection is like this, but I want to update a nested object with {"env":"qa"} in my updated collection with java-driver:

{ "_id" : ObjectId("5b052eeff9290437b217b1ed"), "app" : "hike", "group" : [ { "env" : "prod" }, { "env" : "test" } ]}{ "_id" : ObjectId("5b052f36f9290437b217b1ee"), "app" : "viber", "group" : [ { "env" : "prod" }, { "env" : "test" } ]}

0 votes

is it possible to create views using the Node.js MongoDB Driver (3.0)? There is no db.createView() in the drivers API reference.

0 votes

We recently starting using MongoDB and the new Scala driver library (v 1.1.1). We have not made any custom configurations but we are consistently running out of connections and getting connection timeouts. I worry that we are using the driver incorrectly.

Please see my questions below -

  1. We are using dependency injection to manage the MongoClient. Should be injecting MongoClient or MongoDatabase into all of our CRUD classes?
  2. Should we treat the MongoClient and/or the MongoDatabase as a singleton?
  3. Are there any other common mistakes people have seen with the Scala driver?

Thanks in advance...

+1 vote

I recently upgraded the latest PHP driver and could do an "explain" query by using the "$explain" modifier when executing the query, however as of MongoDB 3.2 the operator was removed so this is no longer possible.

So my question is how can I do an explain query with the new driver and MongoDB 3.2?

...