You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We now support mongo-java-driver version 2.x and 3.0 along with MongoDB Server 2.6.7 and 3.0.0.
Pleaes note that some of the configurations options might no longer be valid when used with version 3 of the mongo-java-driver. Have a look at the table below so see some of the major differences in using version 2.x or 3.0.
| 2.x | 3.0
----------------------+-----------------------+-----------------------------------------------
default WriteConcern | NONE | UNACKNOWLEDGED
----------------------+-----------------------+-----------------------------------------------
option for slaveOk | available | ignored
----------------------+-----------------------+-----------------------------------------------
option for autoConnect| available | ignored
----------------------+-----------------------+-----------------------------------------------
write result checking | available | defaults WriteConncern to ACKNOWLEGED for EXCEPTION
----------------------+-----------------------+-----------------------------------------------
rest index cache | available | throws UnsupportedOperationException
----------------------+-----------------------+-----------------------------------------------
DBRef resolution | via DBRef.fetch | via collection.findOne
----------------------+-----------------------+-----------------------------------------------
MapReduce Options | applied | ignored
----------------------+-----------------------+-----------------------------------------------
authentication | via UserCredentials | via MongoClient
----------------------+-----------------------+-----------------------------------------------
WriteConcernException | not available | translated to DataIntegretyViolationException
----------------------+-----------------------+-----------------------------------------------
executeInSession | available | requestStart/requestDone commands ignored.
----------------------+-----------------------+-----------------------------------------------
index creation | via createIndex | via createIndex
----------------------+-----------------------+-----------------------------------------------
0 commit comments