SlideShare una empresa de Scribd logo
1 de 13
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente

In-core compression: how to shrink your database size in several times
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 Alekseev
 
Introduction to PostgreSQL
Introduction to PostgreSQLIntroduction to PostgreSQL
Introduction to PostgreSQL
Mark Wong
 
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...
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
BertrandDrouvot
 
Avi Apelbaum - RAC
Avi Apelbaum - RAC Avi Apelbaum - RAC
Avi Apelbaum - RAC
gridcontrol
 
Полнотекстовый поиск в PostgreSQL за миллисекунды (Олег Бартунов, Александр К...
Полнотекстовый поиск в PostgreSQL за миллисекунды (Олег Бартунов, Александр К...Полнотекстовый поиск в PostgreSQL за миллисекунды (Олег Бартунов, Александр К...
Полнотекстовый поиск в PostgreSQL за миллисекунды (Олег Бартунов, Александр К...
Ontico
 
Apache Flink Training: DataStream API Part 2 Advanced
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 Forward
 

La actualidad más candente (20)

Full Text Search in PostgreSQL
Full Text Search in PostgreSQLFull Text Search in PostgreSQL
Full Text Search in PostgreSQL
 
In-core compression: how to shrink your database size in several times
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
 
Three Ruby usages
Three Ruby usagesThree Ruby usages
Three Ruby usages
 
PostgreSQL
PostgreSQLPostgreSQL
PostgreSQL
 
OpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon Garcia
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
 
Ceph Day Shanghai - Ceph Performance Tools
Ceph Day Shanghai - Ceph Performance Tools Ceph Day Shanghai - Ceph Performance Tools
Ceph Day Shanghai - Ceph Performance Tools
 
Packet filtering using jpcap
Packet filtering using jpcapPacket filtering using jpcap
Packet filtering using jpcap
 
Adr intro
Adr introAdr intro
Adr intro
 
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)
Rank Your Results with PostgreSQL Full Text Search (from PGConf2015)
 
Move from C to Go
Move from C to GoMove from C to Go
Move from C to Go
 
Introduction to PostgreSQL
Introduction to PostgreSQLIntroduction to PostgreSQL
Introduction to PostgreSQL
 
Percona tool kit for MySQL DBA's
Percona tool kit for MySQL DBA'sPercona tool kit for MySQL DBA's
Percona tool kit for MySQL DBA's
 
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...
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
 
PostgreSQL performance improvements in 9.5 and 9.6
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
 
Avi Apelbaum - RAC
Avi Apelbaum - RAC Avi Apelbaum - RAC
Avi Apelbaum - RAC
 
Полнотекстовый поиск в PostgreSQL за миллисекунды (Олег Бартунов, Александр К...
Полнотекстовый поиск в PostgreSQL за миллисекунды (Олег Бартунов, Александр К...Полнотекстовый поиск в PostgreSQL за миллисекунды (Олег Бартунов, Александр К...
Полнотекстовый поиск в PostgreSQL за миллисекунды (Олег Бартунов, Александр К...
 
Apache Flink Training: DataStream API Part 2 Advanced
Apache Flink Training: DataStream API Part 2 Advanced Apache Flink Training: DataStream API Part 2 Advanced
Apache Flink Training: DataStream API Part 2 Advanced
 
MongoDB Database Replication
MongoDB Database ReplicationMongoDB Database Replication
MongoDB Database Replication
 
PostgreSQL 9.5 - Major Features
PostgreSQL 9.5 - Major FeaturesPostgreSQL 9.5 - Major Features
PostgreSQL 9.5 - Major Features
 
Openshift GeoSpatial Capabilities
Openshift GeoSpatial CapabilitiesOpenshift GeoSpatial Capabilities
Openshift GeoSpatial Capabilities
 

Destacado

Advanced Replication Internals
Advanced Replication InternalsAdvanced Replication Internals
Advanced Replication Internals
MongoDB
 
2010 mongo berlin-scaling
2010 mongo berlin-scaling2010 mongo berlin-scaling
2010 mongo berlin-scaling
MongoDB
 
GAA Presents "goMongo" and HayStack
GAA Presents "goMongo" and HayStackGAA Presents "goMongo" and HayStack
GAA Presents "goMongo" and HayStack
MongoDB
 
Nosh slides mongodb web application - mongo philly 2011
Nosh slides   mongodb web application - mongo philly 2011Nosh slides   mongodb web application - mongo philly 2011
Nosh slides mongodb web application - mongo philly 2011
MongoDB
 

Destacado (9)

Advanced Replication Internals
Advanced Replication InternalsAdvanced Replication Internals
Advanced Replication Internals
 
2010 mongo berlin-scaling
2010 mongo berlin-scaling2010 mongo berlin-scaling
2010 mongo berlin-scaling
 
Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)
 
Webinar: Deployment Best Practices
Webinar: Deployment Best PracticesWebinar: Deployment Best Practices
Webinar: Deployment Best Practices
 
GAA Presents "goMongo" and HayStack
GAA Presents "goMongo" and HayStackGAA Presents "goMongo" and HayStack
GAA Presents "goMongo" and HayStack
 
NOSQL Session GlueCon May 2010
NOSQL Session GlueCon May 2010NOSQL Session GlueCon May 2010
NOSQL Session GlueCon May 2010
 
Nosh slides mongodb web application - mongo philly 2011
Nosh slides   mongodb web application - mongo philly 2011Nosh slides   mongodb web application - mongo philly 2011
Nosh slides mongodb web application - mongo philly 2011
 
Webinar: How to Drive Business Value in Financial Services with 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
 
Replica Sets (NYC NoSQL Meetup)
Replica Sets (NYC NoSQL Meetup)Replica Sets (NYC NoSQL Meetup)
Replica Sets (NYC NoSQL Meetup)
 

Similar a What's new in MongoDB v1.8

BedCon 2013 - Java Persistenz-Frameworks für MongoDB
BedCon 2013 - Java Persistenz-Frameworks für MongoDBBedCon 2013 - Java Persistenz-Frameworks für MongoDB
BedCon 2013 - Java Persistenz-Frameworks für MongoDB
Tobias Trelle
 
MAVRL Workshop 2014 - pymatgen-db & custodian
MAVRL Workshop 2014 - pymatgen-db & custodianMAVRL Workshop 2014 - pymatgen-db & custodian
MAVRL Workshop 2014 - pymatgen-db & custodian
University of California, San Diego
 

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

Mdb dn 2016_07_elastic_search
Mdb dn 2016_07_elastic_searchMdb dn 2016_07_elastic_search
Mdb dn 2016_07_elastic_search
 
MongoDB installation,CRUD operation & JavaScript shell
MongoDB installation,CRUD operation & JavaScript shellMongoDB installation,CRUD operation & JavaScript shell
MongoDB installation,CRUD operation & JavaScript shell
 
Mongo db pefrormance optimization strategies
Mongo db pefrormance optimization strategiesMongo db pefrormance optimization strategies
Mongo db pefrormance optimization strategies
 
MongoDB - An Introduction
MongoDB - An IntroductionMongoDB - An Introduction
MongoDB - An Introduction
 
Introduction To MongoDB
Introduction To MongoDBIntroduction To MongoDB
Introduction To MongoDB
 
AtoZ about TYPO3 v8 CMS
AtoZ about TYPO3 v8 CMSAtoZ about TYPO3 v8 CMS
AtoZ about TYPO3 v8 CMS
 
The Ring programming language version 1.8 book - Part 9 of 202
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
Overhauling a database engine in 2 monthsOverhauling a database engine in 2 months
Overhauling a database engine in 2 months
 
Mdb dn 2016_06_query_primer
Mdb dn 2016_06_query_primerMdb dn 2016_06_query_primer
Mdb dn 2016_06_query_primer
 
What's New in Postgres 9.4
What's New in Postgres 9.4What's New in Postgres 9.4
What's New in Postgres 9.4
 
BedCon 2013 - Java Persistenz-Frameworks für MongoDB
BedCon 2013 - Java Persistenz-Frameworks für MongoDBBedCon 2013 - Java Persistenz-Frameworks für MongoDB
BedCon 2013 - Java Persistenz-Frameworks für MongoDB
 
MongoDB Introduction and Data Modelling
MongoDB Introduction and Data Modelling MongoDB Introduction and Data Modelling
MongoDB Introduction and Data Modelling
 
MongoDB
MongoDBMongoDB
MongoDB
 
The Ring programming language version 1.9 book - Part 11 of 210
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
A sane approach to microservicesA sane approach to microservices
A sane approach to microservices
 
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...
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
 
Mdb dn 2016_09_34_features
Mdb dn 2016_09_34_featuresMdb dn 2016_09_34_features
Mdb dn 2016_09_34_features
 
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...
Oracle applications r12.2, ebr, online patching means lot of work for devel...
 
MAVRL Workshop 2014 - pymatgen-db & custodian
MAVRL Workshop 2014 - pymatgen-db & custodianMAVRL Workshop 2014 - pymatgen-db & custodian
MAVRL Workshop 2014 - pymatgen-db & custodian
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 

Más de MongoDB

Más de MongoDB (20)

MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Migrate Anything* to MongoDB AtlasMongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
 
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 SoCal 2020: Go on a Data Safari with MongoDB Charts!
 
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 SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
 
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for 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
 
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 SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
 
MongoDB 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 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
 
MongoDB SoCal 2020: MongoDB Atlas Jump Start
 MongoDB SoCal 2020: MongoDB Atlas Jump Start MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB SoCal 2020: MongoDB Atlas Jump Start
 
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]
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
 
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
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
 
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 ...
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
 
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!
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
 
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
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
 
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: MongoDB Atlas JumpstartMongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
 
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...
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
 
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
 
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...
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
 
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
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
 
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
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
 
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...
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
 
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...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
 

Último

Último (20)

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 

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