what's new in the mongodb java driver (2.5)?
DESCRIPTION
Short presentation about what is new with the mongodb java driver version 2.5(.3)TRANSCRIPT
MongoDB: What’s new in the 2.5 Java
driver
The Highly Scalable, Enterprise Grade, Open Source Database
Scott Hernandez
New
• URI
• Unified• Basic
• Replicasets
• Better change detection• Name resolution – re-resolve• Map/Reduce
• Inline• Merge• Rereduce
URI
mongodb://host:portmongodb://host:port,host:port?replicaSet=A,slaveOk=true
Options (basic):• slaveOk• replicaSet• safe• w• wtimoutMS• fsync
Replicasets
• Better checking
• Background thread• Add/remove members• Don’t remove if leads to bad state• Support Authentication (with 1.8)• Name (re)resolution every 5min
Map/Reduce
• Inline
• Return in one document (doc size limit)• Merge
• Overwrite existing docs in destination collection
• Rereduce
• Include new and existing docs in reduce phase• Replace all docs in destination collection
Improvements
• Javadocs
• Mongo constructors
• No longer connects; no side effects
• Exception hierarchy
• MongoException root
• Checking max doc size
• Dynamic from server
Breaking changes
• Map/Reduce w/temp collection• Mongo constructors• GridFS metadata field(s)