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

What's hot (20)

PPT
Unit-I: Introduction to Cloud Computing
Divya S
 
PPT
Amqp Basic
Rahul Agrawal
 
PDF
Application of MapReduce in Cloud Computing
Mohammad Mustaqeem
 
PDF
Introduction to OpenStack
Edureka!
 
PPTX
Mobile ad hoc network
skobu
 
PPTX
Internet of Things: state of the art
Mario Kušek
 
PPTX
Business models for business processes on IoT
FabMinds
 
PPTX
Migration into a Cloud
Divya S
 
PPTX
Google Cloud Platform
Francesco Marchitelli
 
PPTX
Wireless Sensor Networks
juno susi
 
PPTX
Integration of Sensors & Actuators With Arduino.pptx
NShravani1
 
PPTX
Mobile databases
Dabbal Singh Mahara
 
PPT
Introduction & history of mobile computing
David Livingston J
 
PDF
OASIS TOSCA: Cloud Portability and Lifecycle Management
Cloud Standards Customer Council
 
PPT
Cloud deployment models
Ashok Kumar
 
PPTX
Case study of amazon EC2 by Akash Badone
Akash Badone
 
PPT
Ecg analysis in the cloud
gaurav jain
 
PDF
Cloud Security Strategy
Capgemini
 
PDF
AWS Step Functions
AxEdge Consulting
 
Unit-I: Introduction to Cloud Computing
Divya S
 
Amqp Basic
Rahul Agrawal
 
Application of MapReduce in Cloud Computing
Mohammad Mustaqeem
 
Introduction to OpenStack
Edureka!
 
Mobile ad hoc network
skobu
 
Internet of Things: state of the art
Mario Kušek
 
Business models for business processes on IoT
FabMinds
 
Migration into a Cloud
Divya S
 
Google Cloud Platform
Francesco Marchitelli
 
Wireless Sensor Networks
juno susi
 
Integration of Sensors & Actuators With Arduino.pptx
NShravani1
 
Mobile databases
Dabbal Singh Mahara
 
Introduction & history of mobile computing
David Livingston J
 
OASIS TOSCA: Cloud Portability and Lifecycle Management
Cloud Standards Customer Council
 
Cloud deployment models
Ashok Kumar
 
Case study of amazon EC2 by Akash Badone
Akash Badone
 
Ecg analysis in the cloud
gaurav jain
 
Cloud Security Strategy
Capgemini
 
AWS Step Functions
AxEdge Consulting
 

Similar to MongoDb - Details on the POC (20)

PPTX
Mongo db
Gyanendra Yadav
 
PDF
Mongo db dhruba
Dhrubaji Mandal ♛
 
PDF
Mongodb Introduction
Raghvendra Parashar
 
PPTX
mongodb_Introduction
Vikas Pratap Singh
 
PDF
Open source Technology
Amardeep Vishwakarma
 
PDF
A Study on Mongodb Database
IJSRD
 
PDF
A Study on Mongodb Database.pdf
Jessica Navarro
 
PPT
Mongo Bb - NoSQL tutorial
Mohan Rathour
 
PPTX
Kalp Corporate MongoDB Tutorials
Kalp Corporate
 
PDF
Mongodb
Apurva Vyas
 
PPTX
Mongodb
ASEEMSRIVASTAVA22
 
PPTX
Basics of MongoDB
HabileLabs
 
PPTX
MongoDB NoSQL - Developer Guide
Shiv K Sah
 
PPTX
MongoDB Introduction - Document Oriented Nosql Database
Sudhir Patil
 
PPTX
MongoDB Internals
Siraj Memon
 
PPTX
Mongo db
AbhiKhurana8
 
PPTX
Munching the mongo
VulcanMinds
 
PDF
Pros and Cons of MongoDB in Web Development
Nirvana Canada
 
Mongo db
Gyanendra Yadav
 
Mongo db dhruba
Dhrubaji Mandal ♛
 
Mongodb Introduction
Raghvendra Parashar
 
mongodb_Introduction
Vikas Pratap Singh
 
Open source Technology
Amardeep Vishwakarma
 
A Study on Mongodb Database
IJSRD
 
A Study on Mongodb Database.pdf
Jessica Navarro
 
Mongo Bb - NoSQL tutorial
Mohan Rathour
 
Kalp Corporate MongoDB Tutorials
Kalp Corporate
 
Mongodb
Apurva Vyas
 
Basics of MongoDB
HabileLabs
 
MongoDB NoSQL - Developer Guide
Shiv K Sah
 
MongoDB Introduction - Document Oriented Nosql Database
Sudhir Patil
 
MongoDB Internals
Siraj Memon
 
Mongo db
AbhiKhurana8
 
Munching the mongo
VulcanMinds
 
Pros and Cons of MongoDB in Web Development
Nirvana Canada
 
Ad

Recently uploaded (20)

PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
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