What's new in MongoDB v1.8

MongoDB
MongoDBMarketing Ninja at MongoDB
What’s New in MongoDB 1.8 — Webinar

                                 Richard M Kreuter
                                      10gen Inc.
                                 richard@10gen.com


                                      March 17, 2011




What’s New in MongoDB 1.8 — Webinar
What is new




        Write-ahead Journaling
        Covered and sparse indexes
        New map/reduce interface
        Spherical geospatial search
        Many new features for replica sets




  What’s New in MongoDB 1.8 — Webinar
Write-ahead Journaling




   MongoDB now supports a journaling mode, enabled with
   --journal, that commits to an append-only write-ahead log
   before making changes to database files.
   On a clean system shutdown, database files are closed and journal
   files are removed. In case of an unclean shutdown, journal sections
   are automatically replayed to bring database files into a coherent
   state.




   What’s New in MongoDB 1.8 — Webinar
Journaling, continued




   In MongoDB 1.8.0, journaling is not enabled by default; this
   default may change in future. At the moment, journaling slows
   down writes more than we expect it will in the long term, and so for
   now you should consider enable journaling on a case-by-case basis.
   The principle purpose of the journaling feature is to speed up
   recovery after a node crashes; you can think of it as a better
   solution than our existing “dbrepair” command.




   What’s New in MongoDB 1.8 — Webinar
Journaling, continued continued


   At present, the journal is committed to the file system every
   100ms, or every 100MB, whichever is smaller. (Adaptive
   automagic tuning of this parameter is something we’re thinking
   about.) So on an unclean shutdown and restart, journal replay will
   bring the database up to the most recent completed journal
   section, i.e., the last 100ms or so of writes can be lost.
   Client applications can use getLastError with the fsync option
   to wait for their last write to have been written to the journal. (An
   interface for triggering, rather than waiting for, a journal write is
   forthcoming in the next weeks.)




   What’s New in MongoDB 1.8 — Webinar
Sparse Indexes




   Sparse indexes are a new flavor of index that may be useful when
   you want to index on a field that is present in only a smallish
   subset of a collection. A sparse index is created by specifying
   { sparse : true } to the index constructor, and it only
   create entries for documents that contain the field.




   What’s New in MongoDB 1.8 — Webinar
Covered Indexes



   A covered index is an index from which a query’s results can be
   produced without needing to access full document records. So, for
   example, if you have an index on attributes foo and bar and you
   execute find({ bar : { $gt : 10 } },
   { foo : 1 , id : 0 }), the results can be computed just by
   examining the index.
   Note that the id attribute is not present in indexes by default, and
   so in order to take advantage of covered indexes, you’ll need to
   exclude it from a query’s projection argument or include it in the
   index explicitly.




   What’s New in MongoDB 1.8 — Webinar
New map/reduce interface
   The mapreduce command no longer creates “temporary
   collections”, and now requires an out argument specifying where
   the map/reduce job’s output goes. The out parameter must be
   one of:
         a collection name (a string), which will replace an collection
         { merge : collectionName } , which will merge the
         Map/Reduce job’s output into an existing collection by
         replacing any existing keys’ values in the collection with the
         M/R output for those keys, and adding key/value pairs for
         any new keys in the M/R output.
         { reduce : collectionName } , which uses the collection’s
         key/value pairs as the initial state for a new reduce job.
         { inline : 1 } , which returns the Map/Reduce output
         as a single document.
   What’s New in MongoDB 1.8 — Webinar
Spherical geoSpatial search


   MongoDB 1.8 includes support for “spherical” geoSpatial searches
   in addition to our existing Cartesian search. Two new geoSpatial
   query operators, $nearSphere and $centerSphere can be used
   to produce result sets that take the curvature of the earth into
   account when computing distances.
         db.places.find({a :             {$nearSphere :   [50, 50]}})
         db.places.find({ a:             {$within:   {$centerSphere:
         [[50, 50], 10]}}}})
         db.runCommand( { geoNear : "places" , near :
         [50,50], num : 10, spherical : true } )




   What’s New in MongoDB 1.8 — Webinar
Many new features for replica sets


   Replica Sets have got some new features:
         hidden – don’t advertize this member to client
         initialSync – specify another node to perform an initial
         sync
         getLastErrorDefaults – specify default parameters (e.g., w
         and wtimeout) for getLastError calls with no arguments.
   Additionally, in sharded deployments, the mongos query router now
   knows how to route queries to Replica Set secondaries when
   slaveOk is enabled.




   What’s New in MongoDB 1.8 — Webinar
New features in tools



         mongostat now supports a --discover mode that
         automatically discovers all nodes in a cluster and queries each
         for statistics.
         mongodump now supports a “point in time” feature that
         dumps out the replication oplog after dumping all collections
         (enable with --oplog).
         mongorestore supports replaying an oplog dump as
         generated by the new mongodump option (enable with
         --oplogReplay).




   What’s New in MongoDB 1.8 — Webinar
Odds and Ends




        Maximum BSON document size has been increased to 16MB.
        A new update modifier for changing attribute names,
        $rename, has been added.
        Naturally, many bug fixes and other improvements have been
        committed.




  What’s New in MongoDB 1.8 — Webinar
So try MongoDB 1.8 today!




         http://www.mongodb.org/downloads

         http://www.mongodb.org/display/DOCS/1.8+Release+Notes
         10gen, Inc. offers support, training, and advising services for
         mongodb.




   What’s New in MongoDB 1.8 — Webinar
1 of 13

Recommended

PostgreSQL 9.4, 9.5 and Beyond @ COSCUP 2015 Taipei by
PostgreSQL 9.4, 9.5 and Beyond @ COSCUP 2015 TaipeiPostgreSQL 9.4, 9.5 and Beyond @ COSCUP 2015 Taipei
PostgreSQL 9.4, 9.5 and Beyond @ COSCUP 2015 TaipeiSatoshi Nagayasu
2.3K views59 slides
MongoDB as Message Queue by
MongoDB as Message QueueMongoDB as Message Queue
MongoDB as Message QueueMongoDB
17.2K views13 slides
Introduction to MongoDB with PHP by
Introduction to MongoDB with PHPIntroduction to MongoDB with PHP
Introduction to MongoDB with PHPfwso
10.3K views33 slides
MongoDB & PHP by
MongoDB & PHPMongoDB & PHP
MongoDB & PHPSanjeev Shrestha
3.9K views53 slides
Developing High Performance Application with Aerospike & Go by
Developing High Performance Application with Aerospike & GoDeveloping High Performance Application with Aerospike & Go
Developing High Performance Application with Aerospike & GoChris Stivers
3.1K views44 slides
Jsonnet, terraform & packer by
Jsonnet, terraform & packerJsonnet, terraform & packer
Jsonnet, terraform & packerDavid Cunningham
1.9K views12 slides

More Related Content

What's hot

Full Text Search in PostgreSQL by
Full Text Search in PostgreSQLFull Text Search in PostgreSQL
Full Text Search in PostgreSQLAleksander Alekseev
2.9K views30 slides
In-core compression: how to shrink your database size in several times by
In-core compression: how to shrink your database size in several timesIn-core compression: how to shrink your database size in several times
In-core compression: how to shrink your database size in several timesAleksander Alekseev
1.5K views39 slides
Three Ruby usages by
Three Ruby usagesThree Ruby usages
Three Ruby usagesKouhei Sutou
1.1K views56 slides
PostgreSQL by
PostgreSQLPostgreSQL
PostgreSQLReuven Lerner
8K views74 slides
OpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon Garcia by
OpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon GarciaOpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon Garcia
OpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon GarciaOpenNebula Project
862 views3 slides
Ceph Day Shanghai - Ceph Performance Tools by
Ceph Day Shanghai - Ceph Performance Tools Ceph Day Shanghai - Ceph Performance Tools
Ceph Day Shanghai - Ceph Performance Tools Ceph Community
133 views26 slides

What's hot(20)

In-core compression: how to shrink your database size in several times by Aleksander Alekseev
In-core compression: how to shrink your database size in several timesIn-core compression: how to shrink your database size in several times
In-core compression: how to shrink your database size in several times
Aleksander Alekseev1.5K views
Three Ruby usages by Kouhei Sutou
Three Ruby usagesThree Ruby usages
Three Ruby usages
Kouhei Sutou1.1K views
OpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon Garcia by OpenNebula Project
OpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon GarciaOpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon Garcia
OpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon Garcia
OpenNebula Project862 views
Ceph Day Shanghai - Ceph Performance Tools by Ceph Community
Ceph Day Shanghai - Ceph Performance Tools Ceph Day Shanghai - Ceph Performance Tools
Ceph Day Shanghai - Ceph Performance Tools
Ceph Community 133 views
Rank Your Results with PostgreSQL Full Text Search (from PGConf2015) by Jamey Hanson
Rank Your Results with PostgreSQL Full Text Search (from PGConf2015)Rank Your Results with PostgreSQL Full Text Search (from PGConf2015)
Rank Your Results with PostgreSQL Full Text Search (from PGConf2015)
Jamey Hanson5.4K views
Introduction to PostgreSQL by Mark Wong
Introduction to PostgreSQLIntroduction to PostgreSQL
Introduction to PostgreSQL
Mark Wong3.9K views
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen... by BertrandDrouvot
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
BertrandDrouvot1.1K views
PostgreSQL performance improvements in 9.5 and 9.6 by Tomas Vondra
PostgreSQL performance improvements in 9.5 and 9.6PostgreSQL performance improvements in 9.5 and 9.6
PostgreSQL performance improvements in 9.5 and 9.6
Tomas Vondra14.2K views
Avi Apelbaum - RAC by gridcontrol
Avi Apelbaum - RAC Avi Apelbaum - RAC
Avi Apelbaum - RAC
gridcontrol777 views
Полнотекстовый поиск в PostgreSQL за миллисекунды (Олег Бартунов, Александр К... by Ontico
Полнотекстовый поиск в PostgreSQL за миллисекунды (Олег Бартунов, Александр К...Полнотекстовый поиск в PostgreSQL за миллисекунды (Олег Бартунов, Александр К...
Полнотекстовый поиск в PostgreSQL за миллисекунды (Олег Бартунов, Александр К...
Ontico7.2K views
Apache Flink Training: DataStream API Part 2 Advanced by Flink Forward
Apache Flink Training: DataStream API Part 2 Advanced Apache Flink Training: DataStream API Part 2 Advanced
Apache Flink Training: DataStream API Part 2 Advanced
Flink Forward9.6K views
Openshift GeoSpatial Capabilities by Steven Pousty
Openshift GeoSpatial CapabilitiesOpenshift GeoSpatial Capabilities
Openshift GeoSpatial Capabilities
Steven Pousty2.9K views

Viewers also liked

Advanced Replication Internals by
Advanced Replication InternalsAdvanced Replication Internals
Advanced Replication InternalsMongoDB
2.5K views29 slides
2010 mongo berlin-scaling by
2010 mongo berlin-scaling2010 mongo berlin-scaling
2010 mongo berlin-scalingMongoDB
396 views16 slides
Deployment Strategies (Mongo Austin) by
Deployment Strategies (Mongo Austin)Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)MongoDB
1.1K views38 slides
Webinar: Deployment Best Practices by
Webinar: Deployment Best PracticesWebinar: Deployment Best Practices
Webinar: Deployment Best PracticesMongoDB
956 views42 slides
GAA Presents "goMongo" and HayStack by
GAA Presents "goMongo" and HayStackGAA Presents "goMongo" and HayStack
GAA Presents "goMongo" and HayStackMongoDB
264 views27 slides
NOSQL Session GlueCon May 2010 by
NOSQL Session GlueCon May 2010NOSQL Session GlueCon May 2010
NOSQL Session GlueCon May 2010MongoDB
876 views26 slides

Viewers also liked(9)

Advanced Replication Internals by MongoDB
Advanced Replication InternalsAdvanced Replication Internals
Advanced Replication Internals
MongoDB2.5K views
2010 mongo berlin-scaling by MongoDB
2010 mongo berlin-scaling2010 mongo berlin-scaling
2010 mongo berlin-scaling
MongoDB396 views
Deployment Strategies (Mongo Austin) by MongoDB
Deployment Strategies (Mongo Austin)Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)
MongoDB1.1K views
Webinar: Deployment Best Practices by MongoDB
Webinar: Deployment Best PracticesWebinar: Deployment Best Practices
Webinar: Deployment Best Practices
MongoDB956 views
GAA Presents "goMongo" and HayStack by MongoDB
GAA Presents "goMongo" and HayStackGAA Presents "goMongo" and HayStack
GAA Presents "goMongo" and HayStack
MongoDB264 views
NOSQL Session GlueCon May 2010 by MongoDB
NOSQL Session GlueCon May 2010NOSQL Session GlueCon May 2010
NOSQL Session GlueCon May 2010
MongoDB876 views
Nosh slides mongodb web application - mongo philly 2011 by MongoDB
Nosh slides   mongodb web application - mongo philly 2011Nosh slides   mongodb web application - mongo philly 2011
Nosh slides mongodb web application - mongo philly 2011
MongoDB506 views
Webinar: How to Drive Business Value in Financial Services with MongoDB by MongoDB
Webinar: How to Drive Business Value in Financial Services with MongoDBWebinar: How to Drive Business Value in Financial Services with MongoDB
Webinar: How to Drive Business Value in Financial Services with MongoDB
MongoDB1.6K views
Replica Sets (NYC NoSQL Meetup) by MongoDB
Replica Sets (NYC NoSQL Meetup)Replica Sets (NYC NoSQL Meetup)
Replica Sets (NYC NoSQL Meetup)
MongoDB981 views

Similar to What's new in MongoDB v1.8

Mdb dn 2016_07_elastic_search by
Mdb dn 2016_07_elastic_searchMdb dn 2016_07_elastic_search
Mdb dn 2016_07_elastic_searchDaniel M. Farrell
601 views23 slides
MongoDB installation,CRUD operation & JavaScript shell by
MongoDB installation,CRUD operation & JavaScript shellMongoDB installation,CRUD operation & JavaScript shell
MongoDB installation,CRUD operation & JavaScript shellShahDhruv21
49 views38 slides
Mongo db pefrormance optimization strategies by
Mongo db pefrormance optimization strategiesMongo db pefrormance optimization strategies
Mongo db pefrormance optimization strategiesronwarshawsky
1.1K views19 slides
MongoDB - An Introduction by
MongoDB - An IntroductionMongoDB - An Introduction
MongoDB - An Introductiondinkar thakur
854 views18 slides
Introduction To MongoDB by
Introduction To MongoDBIntroduction To MongoDB
Introduction To MongoDBElieHannouch
134 views18 slides
AtoZ about TYPO3 v8 CMS by
AtoZ about TYPO3 v8 CMSAtoZ about TYPO3 v8 CMS
AtoZ about TYPO3 v8 CMSNITSAN Technologies Pvt Ltd
164 views22 slides

Similar to What's new in MongoDB v1.8(20)

MongoDB installation,CRUD operation & JavaScript shell by ShahDhruv21
MongoDB installation,CRUD operation & JavaScript shellMongoDB installation,CRUD operation & JavaScript shell
MongoDB installation,CRUD operation & JavaScript shell
ShahDhruv2149 views
Mongo db pefrormance optimization strategies by ronwarshawsky
Mongo db pefrormance optimization strategiesMongo db pefrormance optimization strategies
Mongo db pefrormance optimization strategies
ronwarshawsky1.1K views
MongoDB - An Introduction by dinkar thakur
MongoDB - An IntroductionMongoDB - An Introduction
MongoDB - An Introduction
dinkar thakur854 views
Introduction To MongoDB by ElieHannouch
Introduction To MongoDBIntroduction To MongoDB
Introduction To MongoDB
ElieHannouch134 views
The Ring programming language version 1.8 book - Part 9 of 202 by Mahmoud Samir Fayed
The Ring programming language version 1.8 book - Part 9 of 202The Ring programming language version 1.8 book - Part 9 of 202
The Ring programming language version 1.8 book - Part 9 of 202
Overhauling a database engine in 2 months by Max Neunhöffer
Overhauling a database engine in 2 monthsOverhauling a database engine in 2 months
Overhauling a database engine in 2 months
Max Neunhöffer1.2K views
What's New in Postgres 9.4 by EDB
What's New in Postgres 9.4What's New in Postgres 9.4
What's New in Postgres 9.4
EDB1.8K views
BedCon 2013 - Java Persistenz-Frameworks für MongoDB by Tobias Trelle
BedCon 2013 - Java Persistenz-Frameworks für MongoDBBedCon 2013 - Java Persistenz-Frameworks für MongoDB
BedCon 2013 - Java Persistenz-Frameworks für MongoDB
Tobias Trelle2.2K views
MongoDB Introduction and Data Modelling by Sachin Bhosale
MongoDB Introduction and Data Modelling MongoDB Introduction and Data Modelling
MongoDB Introduction and Data Modelling
Sachin Bhosale279 views
The Ring programming language version 1.9 book - Part 11 of 210 by Mahmoud Samir Fayed
The Ring programming language version 1.9 book - Part 11 of 210The Ring programming language version 1.9 book - Part 11 of 210
The Ring programming language version 1.9 book - Part 11 of 210
A sane approach to microservices by Toby Matejovsky
A sane approach to microservicesA sane approach to microservices
A sane approach to microservices
Toby Matejovsky1.8K views
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese... by ronwarshawsky
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
ronwarshawsky11.9K views
Oracle applications r12.2, ebr, online patching means lot of work for devel... by Ajith Narayanan
Oracle applications r12.2, ebr, online patching   means lot of work for devel...Oracle applications r12.2, ebr, online patching   means lot of work for devel...
Oracle applications r12.2, ebr, online patching means lot of work for devel...
Ajith Narayanan2.1K views
Introduction to MongoDB by Raghunath A
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
Raghunath A115 views

More from MongoDB

MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas by
MongoDB SoCal 2020: Migrate Anything* to MongoDB AtlasMongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Migrate Anything* to MongoDB AtlasMongoDB
6.7K views46 slides
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts! by
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!MongoDB
1.2K views20 slides
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel... by
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...MongoDB
1.1K views40 slides
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB by
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDBMongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDBMongoDB
1.4K views106 slides
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T... by
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...MongoDB
782 views37 slides
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data by
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series DataMongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series DataMongoDB
870 views47 slides

More from MongoDB(20)

MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas by MongoDB
MongoDB SoCal 2020: Migrate Anything* to MongoDB AtlasMongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB6.7K views
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts! by MongoDB
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB1.2K views
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel... by MongoDB
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB1.1K views
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB by MongoDB
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDBMongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB1.4K views
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T... by MongoDB
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB782 views
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data by MongoDB
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series DataMongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB870 views
MongoDB SoCal 2020: MongoDB Atlas Jump Start by MongoDB
 MongoDB SoCal 2020: MongoDB Atlas Jump Start MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB633 views
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys] by MongoDB
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB528 views
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2 by MongoDB
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB473 views
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ... by MongoDB
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB492 views
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts! by MongoDB
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB355 views
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset by MongoDB
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your MindsetMongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB383 views
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart by MongoDB
MongoDB .local San Francisco 2020: MongoDB Atlas JumpstartMongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB287 views
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin... by MongoDB
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB392 views
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++ by MongoDB
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB359 views
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo... by MongoDB
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB382 views
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive by MongoDB
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep DiveMongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB330 views
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang by MongoDB
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & GolangMongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB293 views
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app... by MongoDB
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB328 views
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning... by MongoDB
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB312 views

Recently uploaded

Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu... by
Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu...Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu...
Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu...NUS-ISS
37 views54 slides
Uni Systems for Power Platform.pptx by
Uni Systems for Power Platform.pptxUni Systems for Power Platform.pptx
Uni Systems for Power Platform.pptxUni Systems S.M.S.A.
50 views21 slides
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor... by
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...Vadym Kazulkin
75 views64 slides
How the World's Leading Independent Automotive Distributor is Reinventing Its... by
How the World's Leading Independent Automotive Distributor is Reinventing Its...How the World's Leading Independent Automotive Distributor is Reinventing Its...
How the World's Leading Independent Automotive Distributor is Reinventing Its...NUS-ISS
15 views25 slides
The Importance of Cybersecurity for Digital Transformation by
The Importance of Cybersecurity for Digital TransformationThe Importance of Cybersecurity for Digital Transformation
The Importance of Cybersecurity for Digital TransformationNUS-ISS
27 views26 slides
Java Platform Approach 1.0 - Picnic Meetup by
Java Platform Approach 1.0 - Picnic MeetupJava Platform Approach 1.0 - Picnic Meetup
Java Platform Approach 1.0 - Picnic MeetupRick Ossendrijver
25 views39 slides

Recently uploaded(20)

Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu... by NUS-ISS
Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu...Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu...
Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu...
NUS-ISS37 views
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor... by Vadym Kazulkin
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...
Vadym Kazulkin75 views
How the World's Leading Independent Automotive Distributor is Reinventing Its... by NUS-ISS
How the World's Leading Independent Automotive Distributor is Reinventing Its...How the World's Leading Independent Automotive Distributor is Reinventing Its...
How the World's Leading Independent Automotive Distributor is Reinventing Its...
NUS-ISS15 views
The Importance of Cybersecurity for Digital Transformation by NUS-ISS
The Importance of Cybersecurity for Digital TransformationThe Importance of Cybersecurity for Digital Transformation
The Importance of Cybersecurity for Digital Transformation
NUS-ISS27 views
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen... by NUS-ISS
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...
NUS-ISS28 views
Future of Learning - Khoong Chan Meng by NUS-ISS
Future of Learning - Khoong Chan MengFuture of Learning - Khoong Chan Meng
Future of Learning - Khoong Chan Meng
NUS-ISS33 views
Emerging & Future Technology - How to Prepare for the Next 10 Years of Radica... by NUS-ISS
Emerging & Future Technology - How to Prepare for the Next 10 Years of Radica...Emerging & Future Technology - How to Prepare for the Next 10 Years of Radica...
Emerging & Future Technology - How to Prepare for the Next 10 Years of Radica...
NUS-ISS16 views
Attacking IoT Devices from a Web Perspective - Linux Day by Simone Onofri
Attacking IoT Devices from a Web Perspective - Linux Day Attacking IoT Devices from a Web Perspective - Linux Day
Attacking IoT Devices from a Web Perspective - Linux Day
Simone Onofri15 views
[2023] Putting the R! in R&D.pdf by Eleanor McHugh
[2023] Putting the R! in R&D.pdf[2023] Putting the R! in R&D.pdf
[2023] Putting the R! in R&D.pdf
Eleanor McHugh38 views
Transcript: The Details of Description Techniques tips and tangents on altern... by BookNet Canada
Transcript: The Details of Description Techniques tips and tangents on altern...Transcript: The Details of Description Techniques tips and tangents on altern...
Transcript: The Details of Description Techniques tips and tangents on altern...
BookNet Canada130 views
The details of description: Techniques, tips, and tangents on alternative tex... by BookNet Canada
The details of description: Techniques, tips, and tangents on alternative tex...The details of description: Techniques, tips, and tangents on alternative tex...
The details of description: Techniques, tips, and tangents on alternative tex...
BookNet Canada121 views
Empathic Computing: Delivering the Potential of the Metaverse by Mark Billinghurst
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the Metaverse
Mark Billinghurst470 views
.conf Go 2023 - Data analysis as a routine by Splunk
.conf Go 2023 - Data analysis as a routine.conf Go 2023 - Data analysis as a routine
.conf Go 2023 - Data analysis as a routine
Splunk93 views
Black and White Modern Science Presentation.pptx by maryamkhalid2916
Black and White Modern Science Presentation.pptxBlack and White Modern Science Presentation.pptx
Black and White Modern Science Presentation.pptx
maryamkhalid291614 views

What's new in MongoDB v1.8

  • 1. What’s New in MongoDB 1.8 — Webinar Richard M Kreuter 10gen Inc. richard@10gen.com March 17, 2011 What’s New in MongoDB 1.8 — Webinar
  • 2. What is new Write-ahead Journaling Covered and sparse indexes New map/reduce interface Spherical geospatial search Many new features for replica sets What’s New in MongoDB 1.8 — Webinar
  • 3. Write-ahead Journaling MongoDB now supports a journaling mode, enabled with --journal, that commits to an append-only write-ahead log before making changes to database files. On a clean system shutdown, database files are closed and journal files are removed. In case of an unclean shutdown, journal sections are automatically replayed to bring database files into a coherent state. What’s New in MongoDB 1.8 — Webinar
  • 4. Journaling, continued In MongoDB 1.8.0, journaling is not enabled by default; this default may change in future. At the moment, journaling slows down writes more than we expect it will in the long term, and so for now you should consider enable journaling on a case-by-case basis. The principle purpose of the journaling feature is to speed up recovery after a node crashes; you can think of it as a better solution than our existing “dbrepair” command. What’s New in MongoDB 1.8 — Webinar
  • 5. Journaling, continued continued At present, the journal is committed to the file system every 100ms, or every 100MB, whichever is smaller. (Adaptive automagic tuning of this parameter is something we’re thinking about.) So on an unclean shutdown and restart, journal replay will bring the database up to the most recent completed journal section, i.e., the last 100ms or so of writes can be lost. Client applications can use getLastError with the fsync option to wait for their last write to have been written to the journal. (An interface for triggering, rather than waiting for, a journal write is forthcoming in the next weeks.) What’s New in MongoDB 1.8 — Webinar
  • 6. Sparse Indexes Sparse indexes are a new flavor of index that may be useful when you want to index on a field that is present in only a smallish subset of a collection. A sparse index is created by specifying { sparse : true } to the index constructor, and it only create entries for documents that contain the field. What’s New in MongoDB 1.8 — Webinar
  • 7. Covered Indexes A covered index is an index from which a query’s results can be produced without needing to access full document records. So, for example, if you have an index on attributes foo and bar and you execute find({ bar : { $gt : 10 } }, { foo : 1 , id : 0 }), the results can be computed just by examining the index. Note that the id attribute is not present in indexes by default, and so in order to take advantage of covered indexes, you’ll need to exclude it from a query’s projection argument or include it in the index explicitly. What’s New in MongoDB 1.8 — Webinar
  • 8. New map/reduce interface The mapreduce command no longer creates “temporary collections”, and now requires an out argument specifying where the map/reduce job’s output goes. The out parameter must be one of: a collection name (a string), which will replace an collection { merge : collectionName } , which will merge the Map/Reduce job’s output into an existing collection by replacing any existing keys’ values in the collection with the M/R output for those keys, and adding key/value pairs for any new keys in the M/R output. { reduce : collectionName } , which uses the collection’s key/value pairs as the initial state for a new reduce job. { inline : 1 } , which returns the Map/Reduce output as a single document. What’s New in MongoDB 1.8 — Webinar
  • 9. Spherical geoSpatial search MongoDB 1.8 includes support for “spherical” geoSpatial searches in addition to our existing Cartesian search. Two new geoSpatial query operators, $nearSphere and $centerSphere can be used to produce result sets that take the curvature of the earth into account when computing distances. db.places.find({a : {$nearSphere : [50, 50]}}) db.places.find({ a: {$within: {$centerSphere: [[50, 50], 10]}}}}) db.runCommand( { geoNear : "places" , near : [50,50], num : 10, spherical : true } ) What’s New in MongoDB 1.8 — Webinar
  • 10. Many new features for replica sets Replica Sets have got some new features: hidden – don’t advertize this member to client initialSync – specify another node to perform an initial sync getLastErrorDefaults – specify default parameters (e.g., w and wtimeout) for getLastError calls with no arguments. Additionally, in sharded deployments, the mongos query router now knows how to route queries to Replica Set secondaries when slaveOk is enabled. What’s New in MongoDB 1.8 — Webinar
  • 11. New features in tools mongostat now supports a --discover mode that automatically discovers all nodes in a cluster and queries each for statistics. mongodump now supports a “point in time” feature that dumps out the replication oplog after dumping all collections (enable with --oplog). mongorestore supports replaying an oplog dump as generated by the new mongodump option (enable with --oplogReplay). What’s New in MongoDB 1.8 — Webinar
  • 12. Odds and Ends Maximum BSON document size has been increased to 16MB. A new update modifier for changing attribute names, $rename, has been added. Naturally, many bug fixes and other improvements have been committed. What’s New in MongoDB 1.8 — Webinar
  • 13. So try MongoDB 1.8 today! http://www.mongodb.org/downloads http://www.mongodb.org/display/DOCS/1.8+Release+Notes 10gen, Inc. offers support, training, and advising services for mongodb. What’s New in MongoDB 1.8 — Webinar