What's new in MongoDB 2.6
-
Upload
matias-cascallares -
Category
Technology
-
view
855 -
download
0
description
Transcript of What's new in MongoDB 2.6
![Page 1: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/1.jpg)
What’s New in MongoDB 2.6
Solutions Architect, MongoDB Inc.
Matias Cascallares
#MongoDBDays
@mcascallares
![Page 2: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/2.jpg)
Recent Release History
2.4Mar‘13
2.6Apr ’14
2.2Aug ‘12
Aggregation Framework
Multi-Data Center Deployments
Improved Performance and Concurrency
Hash-based sharding
Text Search
V8 JavaScript engine
Faster counts
BiggestRelease Ever!
![Page 3: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/3.jpg)
Main Improvement Areas
• Operations
• Integrated Search
• Query System
• Security
• Performance & Stability
![Page 4: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/4.jpg)
Operations
![Page 5: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/5.jpg)
New Wire Protocol
Client Server
write()
getLastError(w, j)
result
Version 2.4Version 2.6
write(w, j)
result
![Page 6: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/6.jpg)
Bulk Writes
• You need to import big set of documents
• … and you want error control
• … and you are concerned about performance
![Page 7: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/7.jpg)
Bulk Writes - Ordered
![Page 8: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/8.jpg)
Bulk Writes - Unordered
![Page 9: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/9.jpg)
Maximum Time Per Query
![Page 10: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/10.jpg)
Background Indexing and Replication
Secondary
Secondary
Primarybackground
foregroundforeground
Version 2.4Version 2.6
background background
![Page 11: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/11.jpg)
Storage Allocation
• In databases with great delete ratios we can face some fragmentation
• Similar effect with those updates that increase document size
• Defragment a database can be an expensive operation
• Our goal? Reduce database fragmentation
![Page 12: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/12.jpg)
Storage Allocation
• usePowerOf2Sizes will be the default allocation method for new collections
56 bytes
64 bytes
102 bytes
128 bytes
![Page 13: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/13.jpg)
Integrated Search
![Page 14: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/14.jpg)
Text Search
• Now production-ready
• Integrated with query engine
• Integrated with aggregation framework
• Multi-language document support
![Page 15: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/15.jpg)
Features
• Language-specific tokenization and stemming
• Stop words
• Relevance ranking
• Field boosting
![Page 16: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/16.jpg)
Supported Languages
da – Danish en – English
nl – Dutch fi – Finish
fr – French de – German
hu – Hungarian it – Italian
no – Norwegian pt – Portuguese
ro – Romanian ru – Russian
es – Spanish sv – Swedish
tr - Turkish
![Page 17: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/17.jpg)
Integrated within find()
![Page 18: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/18.jpg)
Integrated within aggregate()
![Page 19: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/19.jpg)
More Text Examples
![Page 20: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/20.jpg)
Relevance
![Page 21: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/21.jpg)
Forcing a Language
![Page 22: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/22.jpg)
Query System Improvements
![Page 23: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/23.jpg)
Query System Improvements
• Index Intersection
• Aggregation Framework
• New Update Operators
![Page 24: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/24.jpg)
Index Intersection
• Simpler ad-hoc queries
• Existing indexes can be combined to optimize a query – Less Index Maintenance – Smaller Working Set– Lower Write Overhead– More Adaptive– Able to control potential intersections using
QueryShape
![Page 25: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/25.jpg)
Index Intersection
![Page 26: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/26.jpg)
Aggregation Framework - Output
![Page 27: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/27.jpg)
Aggregation Framework - Explain
![Page 28: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/28.jpg)
Aggregation Framework - Explain
![Page 29: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/29.jpg)
Aggregation Framework - Set Operators
• $project operator in the aggregation pipeline now supports an expanded set of expressions– $setIsSubset– $setEquals– $setDifference– $setIntersection– $setUnion– $allElementsTrue– $anyElementTrue
![Page 30: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/30.jpg)
New Update Operators
• $mul
• $min/$max
• $bit
• $currentDate
• New modifiers for $push
![Page 31: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/31.jpg)
Security
![Page 32: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/32.jpg)
Security
• Authentication with LDAP (Enterprise only)
• x.509 Certificates
• User defined roles
• Collection level security
• Auditing (Enterprise only)
• Windows Kerberos Support
![Page 33: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/33.jpg)
State of Security in MongoDB 2.6
• Authentication – Who are you? – X.509 authentication and Kerberos
• Authorization – What can you do? – User Defined Roles, Collection-level Access Control
• Auditing – What have you done?– DDL, User Manipulation, Authorization failure
![Page 34: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/34.jpg)
Roles and Collection-level Security
![Page 35: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/35.jpg)
Auditing
• Schema actions
• Replica Set actions
• Authentication & Authorization actions
• Other actions
![Page 36: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/36.jpg)
Auditing – Dropping a collection
![Page 37: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/37.jpg)
Auditing – Shutting down the server
![Page 38: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/38.jpg)
Performance & Stability
![Page 39: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/39.jpg)
Improving Performance and Scalability
• Query router connection pooling
• Mixed SSL connections
• Expanded SNMP support
• Oplog processing is MUCH faster
• New commands for sharded environments
![Page 40: What's new in MongoDB 2.6](https://reader034.fdocuments.us/reader034/viewer/2022052321/54b2a7dc4a7959a15d8b4591/html5/thumbnails/40.jpg)
Thanks
Solutions Architect, MongoDB Inc.
Matias Cascallares
#MongoDBDays
@mcascallares