8
MongoDB: What’s new in the 2.5 Java driver The Highly Scalable, Enterprise Grade, Open Source Database Scott Hernandez

What's new in the MongoDB Java Driver (2.5)?

Embed Size (px)

DESCRIPTION

Short presentation about what is new with the mongodb java driver version 2.5(.3)

Citation preview

Page 1: What's new in the MongoDB Java Driver (2.5)?

MongoDB: What’s new in the 2.5 Java

driver

The Highly Scalable, Enterprise Grade, Open Source Database

Scott Hernandez

Page 2: What's new in the MongoDB Java Driver (2.5)?

New

• URI

• Unified• Basic

• Replicasets

• Better change detection• Name resolution – re-resolve• Map/Reduce

• Inline• Merge• Rereduce

Page 3: What's new in the MongoDB Java Driver (2.5)?

URI

mongodb://host:portmongodb://host:port,host:port?replicaSet=A,slaveOk=true

Options (basic):• slaveOk• replicaSet• safe• w• wtimoutMS• fsync

Page 4: What's new in the MongoDB Java Driver (2.5)?

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

Page 5: What's new in the MongoDB Java Driver (2.5)?

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

Page 6: What's new in the MongoDB Java Driver (2.5)?

Improvements

• Javadocs

• Mongo constructors

• No longer connects; no side effects

• Exception hierarchy

• MongoException root

• Checking max doc size

• Dynamic from server

Page 7: What's new in the MongoDB Java Driver (2.5)?

Breaking changes

• Map/Reduce w/temp collection• Mongo constructors• GridFS metadata field(s)

Page 8: What's new in the MongoDB Java Driver (2.5)?

Questions

[email protected]

Download: http://www.mongodb.com/downloads