SlideShare a Scribd company logo
Goodbye rows and tables, hello documents and collections
Lots of pretty pictures to fool you.
Noise
Introduction M ongoDB bridges the gap between key-value stores (which are fast and highly scalable) and traditional RDBMS systems (which provide rich queries and deep functionality). MongoDB is  document-oriented ,  schema-free ,  scalable ,  high-performance ,  open source.  Written in C++ Mongo is not a relational database like MySQL Goodbye rows and tables, hello documents and collections Features Document-oriented Documents (objects) map nicely to programming language data types Embedded documents and arrays reduce need for joins No joins and no multi-document transactions for high performance and easy scalability High performance No joins and embedding makes reads and writes fast Indexes including indexing of keys from embedded documents and arrays High availability Replicated servers with automatic master failover Easy scalability Automatic sharding (auto-partitioning of data across servers) Reads and writes are distributed over shards No joins or multi-document transactions make distributed queries easy and fast Eventually-consistent reads can be distributed over replicated servers
Cost - MongoDB is free MongoDb is easily installable. MongoDb supports various programming languages like C, C++, Java,Javascript, PHP.  MongoDB is blazingly fast MongoDB is schemaless Ease of scale-out If load increases it can be distributed to other nodes across computer networks.  It's trivially easy to add more fields -- even complex fields -- to your objects.  So as requirements change, you can adapt code quickly. Background Indexing MongoDB is a stand-alone server Development time is faster, too, since there are no schemas to manage. It supports Server-side JavaScript execution.  Which allows a developer to use a single programming language for both client and server side code Why ?
Mongo is limited to a total data size of 2GB for all databases in 32-bit mode. No referential integrity Data size in MongoDB is typically higher. At the moment Map/Reduce (e.g. to do aggregations/data analysis) is OK,  but not blisteringly fast. Group By : less than 10,000 keys.  For larger grouping operations without limits, please use map/reduce . Lack of predefined schema is a double-edged sword No support for Joins & transactions Limitations
Benchmarking (MongoDB Vs. MySQL) Test Machine configuration: CPU : Intel Xeon 1.6 GHz - Quad Core, 64 Bit Memory : 8 GB RAM OS : Centos 5.2 - Kernel 2.6.18 64 bit Record Structure Field1 -> String, Indexed Field2 -> String, Indexed Filed3 -> Date, Not Indexed Filed4 -> Integer, Indexed
Mongo data model A Mongo system (see deployment above) holds a set of databases A  database  holds a set of collections A  collection  holds a set of documents A  document  is a set of fields A  field  is a key-value pair A  key  is a name (string) A  value  is a basic type like string, integer, float, timestamp, binary, etc., a document, or an array of values MySQL Term Mongo Term database database table collection index index row BSON document column BSON field Primary key _id field
SQL to Mongo Mapping Chart
Continued ... SQL Statement  Mongo Statement
Replication / Sharding Data Redundancy Automated Failover Distribute read load Simplify maintenance  (compared to "normal" master-slave) Disaster recovery from user error Automatic balancing for changes in  load and data distribution Easy addition of new machines Scaling out to one thousand nodes No single points of failure Automatic failover
These slides are online: http://amardeep.in/intro_to_mongodb.ppt

More Related Content

PDF
Javascript engine performance
PPT
ABC of Agile (Scrum & Extreme Programming)
PPTX
Экстремальное программирование (XP – extreme programming)
PDF
Open source Technology
PPTX
Mongo db
PDF
Mongodb
PDF
Mongo db transcript
PPTX
Mongo db pefrormance optimization strategies
Javascript engine performance
ABC of Agile (Scrum & Extreme Programming)
Экстремальное программирование (XP – extreme programming)
Open source Technology
Mongo db
Mongodb
Mongo db transcript
Mongo db pefrormance optimization strategies

Similar to MongoDb - Details on the POC (20)

PPTX
PDF
mongodb tutorial
PPTX
No sql - { If and Else }
PDF
Introduction to MongoDB and its best practices
PPTX
MongoDB 2.4 and spring data
PPTX
How to learn MongoDB for beginner's
TXT
No sql
PPT
MongoDB Knowledge Shareing
PDF
MongoDB NoSQL database a deep dive -MyWhitePaper
PDF
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
PDF
Node Js, AngularJs and Express Js Tutorial
PPTX
05201349_Unit_7_FSWD_ advanced learning.pptx
PPTX
05201349_Unit_7_FSWD_II(1) with advance.pptx
PPTX
05201349_Unit_7_FSWD_ advanced learning.pptx
PPTX
05201349_Unit_7_FSWD_II(1) with advance.pptx
PPTX
Klevis Mino: MongoDB
PPTX
MongoDB is a document database. It stores data in a type of JSON format calle...
PPTX
Nosql
PDF
Comparison between mongo db and cassandra using ycsb
PPTX
Big data technology unit 3
mongodb tutorial
No sql - { If and Else }
Introduction to MongoDB and its best practices
MongoDB 2.4 and spring data
How to learn MongoDB for beginner's
No sql
MongoDB Knowledge Shareing
MongoDB NoSQL database a deep dive -MyWhitePaper
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Node Js, AngularJs and Express Js Tutorial
05201349_Unit_7_FSWD_ advanced learning.pptx
05201349_Unit_7_FSWD_II(1) with advance.pptx
05201349_Unit_7_FSWD_ advanced learning.pptx
05201349_Unit_7_FSWD_II(1) with advance.pptx
Klevis Mino: MongoDB
MongoDB is a document database. It stores data in a type of JSON format calle...
Nosql
Comparison between mongo db and cassandra using ycsb
Big data technology unit 3
Ad

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Modernizing your data center with Dell and AMD
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
A Presentation on Artificial Intelligence
PPTX
Cloud computing and distributed systems.
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Understanding_Digital_Forensics_Presentation.pptx
NewMind AI Monthly Chronicles - July 2025
Network Security Unit 5.pdf for BCA BBA.
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
The Rise and Fall of 3GPP – Time for a Sabbatical?
Modernizing your data center with Dell and AMD
MYSQL Presentation for SQL database connectivity
A Presentation on Artificial Intelligence
Cloud computing and distributed systems.
Diabetes mellitus diagnosis method based random forest with bat algorithm
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Chapter 3 Spatial Domain Image Processing.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Unlocking AI with Model Context Protocol (MCP)
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Ad

MongoDb - Details on the POC

  • 1. Goodbye rows and tables, hello documents and collections
  • 2. Lots of pretty pictures to fool you.
  • 4. Introduction M ongoDB bridges the gap between key-value stores (which are fast and highly scalable) and traditional RDBMS systems (which provide rich queries and deep functionality). MongoDB is document-oriented , schema-free , scalable , high-performance , open source. Written in C++ Mongo is not a relational database like MySQL Goodbye rows and tables, hello documents and collections Features Document-oriented Documents (objects) map nicely to programming language data types Embedded documents and arrays reduce need for joins No joins and no multi-document transactions for high performance and easy scalability High performance No joins and embedding makes reads and writes fast Indexes including indexing of keys from embedded documents and arrays High availability Replicated servers with automatic master failover Easy scalability Automatic sharding (auto-partitioning of data across servers) Reads and writes are distributed over shards No joins or multi-document transactions make distributed queries easy and fast Eventually-consistent reads can be distributed over replicated servers
  • 5. Cost - MongoDB is free MongoDb is easily installable. MongoDb supports various programming languages like C, C++, Java,Javascript, PHP. MongoDB is blazingly fast MongoDB is schemaless Ease of scale-out If load increases it can be distributed to other nodes across computer networks. It's trivially easy to add more fields -- even complex fields -- to your objects. So as requirements change, you can adapt code quickly. Background Indexing MongoDB is a stand-alone server Development time is faster, too, since there are no schemas to manage. It supports Server-side JavaScript execution. Which allows a developer to use a single programming language for both client and server side code Why ?
  • 6. Mongo is limited to a total data size of 2GB for all databases in 32-bit mode. No referential integrity Data size in MongoDB is typically higher. At the moment Map/Reduce (e.g. to do aggregations/data analysis) is OK, but not blisteringly fast. Group By : less than 10,000 keys. For larger grouping operations without limits, please use map/reduce . Lack of predefined schema is a double-edged sword No support for Joins & transactions Limitations
  • 7. Benchmarking (MongoDB Vs. MySQL) Test Machine configuration: CPU : Intel Xeon 1.6 GHz - Quad Core, 64 Bit Memory : 8 GB RAM OS : Centos 5.2 - Kernel 2.6.18 64 bit Record Structure Field1 -> String, Indexed Field2 -> String, Indexed Filed3 -> Date, Not Indexed Filed4 -> Integer, Indexed
  • 8. Mongo data model A Mongo system (see deployment above) holds a set of databases A database holds a set of collections A collection holds a set of documents A document is a set of fields A field is a key-value pair A key is a name (string) A value is a basic type like string, integer, float, timestamp, binary, etc., a document, or an array of values MySQL Term Mongo Term database database table collection index index row BSON document column BSON field Primary key _id field
  • 9. SQL to Mongo Mapping Chart
  • 10. Continued ... SQL Statement Mongo Statement
  • 11. Replication / Sharding Data Redundancy Automated Failover Distribute read load Simplify maintenance (compared to "normal" master-slave) Disaster recovery from user error Automatic balancing for changes in load and data distribution Easy addition of new machines Scaling out to one thousand nodes No single points of failure Automatic failover
  • 12. These slides are online: http://amardeep.in/intro_to_mongodb.ppt