Successfully reported this slideshow.

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

1,753 views

Published on

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

Published in: Technology
  • Be the first to comment

  • Be the first to like this

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

  1. 1. MongoDB: What’s new in the 2.5 Java driver <br />The Highly Scalable, Enterprise Grade, Open Source Database<br />Scott Hernandez<br />
  2. 2. New<br /><ul><li>URI
  3. 3. Unified
  4. 4. Basic
  5. 5. Replicasets
  6. 6. Better change detection
  7. 7. Name resolution – re-resolve
  8. 8. Map/Reduce
  9. 9. Inline
  10. 10. Merge
  11. 11. Rereduce</li></li></ul><li>URI<br />mongodb://host:port<br />mongodb://host:port,host:port?replicaSet=A,slaveOk=true<br />Options (basic):<br /><ul><li>slaveOk
  12. 12. replicaSet
  13. 13. safe
  14. 14. w
  15. 15. wtimoutMS
  16. 16. fsync</li></li></ul><li>Replicasets<br /><ul><li>Better checking
  17. 17. Background thread
  18. 18. Add/remove members
  19. 19. Don’t remove if leads to bad state
  20. 20. Support Authentication (with 1.8)
  21. 21. Name (re)resolution every 5min</li></li></ul><li>Map/Reduce<br /><ul><li>Inline
  22. 22. Return in one document (doc size limit)
  23. 23. Merge
  24. 24. Overwrite existing docs in destination collection
  25. 25. Rereduce
  26. 26. Include new and existing docs in reduce phase
  27. 27. Replace all docs in destination collection </li></li></ul><li>Improvements<br /><ul><li>Javadocs
  28. 28. Mongo constructors
  29. 29. No longer connects; no side effects
  30. 30. Exception hierarchy
  31. 31. MongoException root
  32. 32. Checking max doc size
  33. 33. Dynamic from server</li></li></ul><li>Breaking changes<br /><ul><li>Map/Reduce w/temp collection
  34. 34. Mongo constructors
  35. 35. GridFS metadata field(s)</li></li></ul><li>Questions<br />scott@10gen.com<br />Download: http://www.mongodb.com/downloads<br />

×