What's new in MongoDB 2.6 at India event by company

40
What’s New in MongoDB 2.6 Solutions Architect, MongoDB Inc. Matias Cascallares #MongoDBDays @mcascallares

description

Matias presented new features of MongoDB 2.6 in an event at India.

Transcript of What's new in MongoDB 2.6 at India event by company

Page 1: What's new in MongoDB 2.6 at India event by company

What’s New in MongoDB 2.6

Solutions Architect, MongoDB Inc.

Matias Cascallares

#MongoDBDays @mcascallares

Page 2: What's new in MongoDB 2.6 at India event by company

Recent Release History

2.4 Mar‘13

2.6 Apr ’14

2.2 Aug ‘12

Aggregation Framework

Multi-Data Center Deployments

Improved Performance and Concurrency

Hash-based sharding

Text Search

V8 JavaScript engine

Faster counts

Biggest Release

Ever!

Page 3: What's new in MongoDB 2.6 at India event by company

Main Improvement Areas

•  Operations

•  Integrated Search

•  Query System

•  Security

•  Performance & Stability

Page 4: What's new in MongoDB 2.6 at India event by company

Operations

Page 5: What's new in MongoDB 2.6 at India event by company

New Wire Protocol

Client Server

write()

getLastError(w, j)

result

Version 2.4

Version 2.6

write(w, j)

result

Page 6: What's new in MongoDB 2.6 at India event by company

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 at India event by company

Bulk Writes - Ordered

Page 8: What's new in MongoDB 2.6 at India event by company

Bulk Writes - Unordered

Page 9: What's new in MongoDB 2.6 at India event by company

Maximum Time Per Query

Page 10: What's new in MongoDB 2.6 at India event by company

Background Indexing and Replication

Secondary Secondary

Primary background Version

2.4 Version

2.6

Page 11: What's new in MongoDB 2.6 at India event by company

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 at India event by company

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 at India event by company

Integrated Search

Page 14: What's new in MongoDB 2.6 at India event by company

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 at India event by company

Features

•  Language-specific tokenization and stemming

•  Stop words

•  Relevance ranking

•  Field boosting

Page 16: What's new in MongoDB 2.6 at India event by company

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 at India event by company

Integrated within find()

Page 18: What's new in MongoDB 2.6 at India event by company

Integrated within aggregate()

Page 19: What's new in MongoDB 2.6 at India event by company

More Text Examples

Page 20: What's new in MongoDB 2.6 at India event by company

Relevance

Page 21: What's new in MongoDB 2.6 at India event by company

Forcing a Language

Page 22: What's new in MongoDB 2.6 at India event by company

Query System Improvements

Page 23: What's new in MongoDB 2.6 at India event by company

Query System Improvements

•  Index Intersection

•  Aggregation Framework

•  New Update Operators

Page 24: What's new in MongoDB 2.6 at India event by company

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 at India event by company

Index Intersection

Page 26: What's new in MongoDB 2.6 at India event by company

Aggregation Framework - Output

Page 27: What's new in MongoDB 2.6 at India event by company

Aggregation Framework - Explain

Page 28: What's new in MongoDB 2.6 at India event by company

Aggregation Framework - Explain

Page 29: What's new in MongoDB 2.6 at India event by company

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 at India event by company

New Update Operators

•  $mul

•  $min/$max

•  $bit

•  $currentDate

•  New modifiers for $push

Page 31: What's new in MongoDB 2.6 at India event by company

Security

Page 32: What's new in MongoDB 2.6 at India event by company

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 at India event by company

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 at India event by company

Roles and Collection-level Security

Page 35: What's new in MongoDB 2.6 at India event by company

Auditing

•  Schema actions

•  Replica Set actions

•  Authentication & Authorization actions

•  Other actions

Page 36: What's new in MongoDB 2.6 at India event by company

Auditing – Dropping a collection

Page 37: What's new in MongoDB 2.6 at India event by company

Auditing – Shutting down the server

Page 38: What's new in MongoDB 2.6 at India event by company

Performance & Stability

Page 39: What's new in MongoDB 2.6 at India event by company

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 at India event by company

Thanks

Solutions Architect, MongoDB Inc.

Matias Cascallares

#MongoDBDays @mcascallares