More Related Content
Similar to MongoDB Session 2
Similar to MongoDB Session 2 (20)
More from People Strategists
More from People Strategists (12)
MongoDB Session 2
- 1. Slide 1 of 20© People Strategists www.peoplestrategists.com
MongoDB (Session-2)
- 2. Slide 2 of 20© People Strategists www.peoplestrategists.com
Types of NoSQL Databases
- 3. Slide 3 of 20© People Strategists www.peoplestrategists.com
Types of NoSQL databases
• Distributed Key-Value Systems
• Key-Value pair storage.
• Amazon’s Dynamo
• Document-based Systems
• Data organized in documents.
• CouchDB
• MongoDB
• Column-based Systems
• Columnar representation.
• Google’s BigTable
• Facebook’s Cassandra
• Graph-based Systems
• Use a graph structure.
• Neo4j
- 4. Slide 4 of 20© People Strategists www.peoplestrategists.com
Key-Value Pair Stores
Simplest NoSQL Data
Stores
Value is a Blob
Use Primary-Key access
<key = customerID>
<value = object>
Orders
Customer
BillingAddress
Order
Shipping Address
OrderPayment
- 5. Slide 5 of 20© People Strategists www.peoplestrategists.com
Features
All key-value databases are different
Chose one based on your needs
Insert( key, Value), Fetch(Key), Update(Key), Delete(Key).
- 6. Slide 6 of 20© People Strategists www.peoplestrategists.com
Document Store
Records Stored in distinct documents.
Embedded documents provide relations.
- 7. Slide 7 of 20© People Strategists www.peoplestrategists.com
Features
JSON Documents.
No fixed data format.
Good for Big Data size collections.
Dynamic Updates
- 8. Slide 8 of 20© People Strategists www.peoplestrategists.com
Column Based Stores
• Data tables are stored as sections of columns of data, rather
than as rows of data.
Column Family
Row
Row KeyX Column1 Column2 Column3
- 9. Slide 9 of 20© People Strategists www.peoplestrategists.com
Features
Container of Rows.
This type of data store is good for
• Distributed data storage, especially versioned data because of
the time-stamps.
• Large-scale, batch-oriented data processing: sorting, parsing,
conversion, algorithmic crunching, etc.
- 10. Slide 10 of 20© People Strategists www.peoplestrategists.com
Graph Database Systems
C) People Strategists - Duplication is prohibited - www.peoplestrategists.com
- 11. Slide 11 of 20© People Strategists www.peoplestrategists.com
Features
Nodes and Edges.
Relationship between data.
Index-free adjacency.
Graph databases are useful when you are more
interested in relationships between data than in the data
itself
• In representing and traversing social networks
• generating recommendations.
- 12. Slide 12 of 20© People Strategists www.peoplestrategists.com
Just to Sum up
NOSQL is a broad term used to group databases that store and
retrieve data without using the traditional tabular relations of
RDBMS.
NOSQL is popularly known as Not Only SQL, because of the
fact that it is really more that mere SQLs.
It solves the problems of scalability and availability.
It facilitates the implementation of distributed database services.
Relax a subset of ACID to achieve scale
In context to the CAP’s theorem, the NOSQL databases
compromise on consistency and achieve high availability and
partition tolerance.
Simple programming model and administration
Variants include Key-Value store, Document Store, Column
based stores and Graph based stores.
C) People Strategists - Duplication is prohibited - www.peoplestrategists.com
- 13. Slide 13 of 20© People Strategists www.peoplestrategists.com
Introduction to MongoDB
- 14. Slide 14 of 20© People Strategists www.peoplestrategists.com
Actual Popularity
- 15. Slide 15 of 20© People Strategists www.peoplestrategists.com
- 16. Slide 16 of 20© People Strategists www.peoplestrategists.com
Production Deployments
- 17. Slide 17 of 20© People Strategists www.peoplestrategists.com
Ranking
- 18. Slide 18 of 20© People Strategists www.peoplestrategists.com
Skill Set Ratio
- 19. Slide 19 of 20© People Strategists www.peoplestrategists.com
- 20. Slide 20 of 20© People Strategists www.peoplestrategists.com
Momentum and Milestones
• The leading NoSQL database for start ups and
enterprises, MongoDB has amassed more than 900
customers, including 27 Fortune 100 companies.
• More than 6.5 million downloads of MongoDB
Fastest-growing community in Big Data, with more than
130 user groups and 28,000 user group members around
the world
- 21. Slide 21 of 20© People Strategists www.peoplestrategists.com
MongoDB What??
- 22. Slide 22 of 20© People Strategists www.peoplestrategists.com
Humongous
Open Source, Distributed, Schema free, Document Database.
Cross Platform.
Easy language Interface.
- 23. Slide 23 of 20© People Strategists www.peoplestrategists.com
Mapping to Relational Database
C) People Strategists - Duplication is prohibited - www.peoplestrategists.com
Tables
Embedded
Documents
Joins
Rows and
Columns
DocumentsCollection
- 24. Slide 24 of 20© People Strategists www.peoplestrategists.com