+ All Categories
Home > Technology > What's new in MongoDB 2.6

What's new in MongoDB 2.6

Date post: 11-Jan-2015
Category:
Upload: matias-cascallares
View: 855 times
Download: 0 times
Share this document with a friend
Description:
MongoDB 2.6 is the biggest MongoDB release ever. In this presentation you are going to explore which features, improvements and capabilities were added to the latest version and how you can smoothly upgrade your deployments.
40
What’s New in MongoDB 2.6 Solutions Architect, MongoDB Inc. Matias Cascallares #MongoDBDays @mcascallares
Transcript
Page 1: What's new in MongoDB 2.6

What’s New in MongoDB 2.6

Solutions Architect, MongoDB Inc.

Matias Cascallares

#MongoDBDays

@mcascallares

Page 2: What's new in MongoDB 2.6

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

Main Improvement Areas

• Operations

• Integrated Search

• Query System

• Security

• Performance & Stability

Page 4: What's new in MongoDB 2.6

Operations

Page 5: What's new in MongoDB 2.6

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

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

Bulk Writes - Ordered

Page 8: What's new in MongoDB 2.6

Bulk Writes - Unordered

Page 9: What's new in MongoDB 2.6

Maximum Time Per Query

Page 10: What's new in MongoDB 2.6

Background Indexing and Replication

Secondary

Secondary

Primarybackground

foregroundforeground

Version 2.4Version 2.6

background background

Page 11: What's new in MongoDB 2.6

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

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

Integrated Search

Page 14: What's new in MongoDB 2.6

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

Features

• Language-specific tokenization and stemming

• Stop words

• Relevance ranking

• Field boosting

Page 16: What's new in MongoDB 2.6

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

Integrated within find()

Page 18: What's new in MongoDB 2.6

Integrated within aggregate()

Page 19: What's new in MongoDB 2.6

More Text Examples

Page 20: What's new in MongoDB 2.6

Relevance

Page 21: What's new in MongoDB 2.6

Forcing a Language

Page 22: What's new in MongoDB 2.6

Query System Improvements

Page 23: What's new in MongoDB 2.6

Query System Improvements

• Index Intersection

• Aggregation Framework

• New Update Operators

Page 24: What's new in MongoDB 2.6

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

Index Intersection

Page 26: What's new in MongoDB 2.6

Aggregation Framework - Output

Page 27: What's new in MongoDB 2.6

Aggregation Framework - Explain

Page 28: What's new in MongoDB 2.6

Aggregation Framework - Explain

Page 29: What's new in MongoDB 2.6

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

New Update Operators

• $mul

• $min/$max

• $bit

• $currentDate

• New modifiers for $push

Page 31: What's new in MongoDB 2.6

Security

Page 32: What's new in MongoDB 2.6

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

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

Roles and Collection-level Security

Page 35: What's new in MongoDB 2.6

Auditing

• Schema actions

• Replica Set actions

• Authentication & Authorization actions

• Other actions

Page 36: What's new in MongoDB 2.6

Auditing – Dropping a collection

Page 37: What's new in MongoDB 2.6

Auditing – Shutting down the server

Page 38: What's new in MongoDB 2.6

Performance & Stability

Page 39: What's new in MongoDB 2.6

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

Thanks

Solutions Architect, MongoDB Inc.

Matias Cascallares

#MongoDBDays

@mcascallares


Recommended