SlideShare a Scribd company logo
NoSQL Databases.
By
Nimat Ullah Khattak.
11-MS(IT)-27
&
Majid Hussain.
11-MS(IT)-02
Overview of The Presentation
 NoSQL
 Why NoSQL
 Categories of NoSQL databases
 Comparison of different NoSQL databases.
NoSQL
 A term which stands for
NoSQL (Beginning)
 First used by Carlo Strozzi in 1998.
 Reintroduced by Eric Evan in 2009.
NoSQL(What is NoSQL?)
 NoSQL doesn’t mean to stop using SQL. OR
SQL won’t be used.
 The term refers to those databases that differ
from relational databases.
 Simply Non-relational databases.
Some terms we must know…
 ACID (Atomicity, Consistency, Isolation,
Durability).
 CAP (Consistency, Availability, Partition
Tolerance).
ACID
 Atomicity. All of the operations in the transaction
will complete, or none will.
 Consistency. The database will be in a consistent
state when the transaction begins and ends.
 Isolation. The transaction will behave as if it is the
only operation being performed upon the database.
(No interference of transaction)
 Durability. Upon completion of the transaction,
the operation will not be reversed.
CAP
 Consistency. No contradiction b/w data.
 Availability. Every operation must terminate in an
intended response.
 Partition tolerance. Operations will complete, even if
individual components are unavailable
 NoSQL are based on CAP…
CAP (For NoSQL)
Why NoSQL?
 NoSQL didn’t come because of the shortfalls of
SQL…
Why NoSQL (Features)
 It provides:
 Horizontal scalability
 Open-source
 Schema-freeness
 Easy replication support
 Simple API
Why NoSQL (Features)
 NoSQL databases are eventually consistent / CAP (not
ACID).
Scalability
 To maintain performance.
 Horizontal Scalability:
 To increase the no-of machines but maintaining
proportional performance.
 Vertical scalability:
 To add more resources to your single machine to
optimize performance.
Open source
 Most of the NoSQL Projects are Open source. So any one
can use, modify it, like
 Cassandra by facebook.
 Couch and MongoDB.
 Neo4j etc
 Bigtable by google but only allowed for Google
application.
Schema freeness
 NoSQL databases doesn’t use any fixed schema like
relational database.
 Internal schema
 External schema etc
 The original intention of NoSQL is the modern web-scale
databases.
Easy replication support
 The use of redundant resources to improve:
 Reliability
 Fault-tolerance
 Performance
Why NoSQL (Benefits)
1. Scaling
RDBs weren’t easy to scale out.
On the other hand NoSQL DBs are specially designed to
scale out.
Why NoSQL (Benefits)
2. Big data
Single RDBMS is almost unable to handle today’s
huge amount of data and the transaction on that
data.
But
Non-Relational databases are specially designed to
handle big data.
Why NoSQL (Benefits)
3. Needs no Expert DBAs
Although RDMS vendors claim that RDBMS provide
management facilities but it still need an expert DBA to
operate it.
In contrast NoSQL DBs don’t need expert DBAs, as it
provides automatic repair, data distribution, and simpler
data models, which lead to lower administration.
Why NoSQL (Benefits)
4. Economics
RDBMS requires expensive components for providing
efficient service.
NoSQL uses cheap commodity servers to manage the same
amount of data for which RDBMS needs expensive server.
so NoSQL is economical as well.
Why NoSQL (Benefits)
5. Flexibility of data models
There can occur changes in the requirements of an
organization with the passage of time…
Changes in RDBMS after its deployment creates many
problems and also affects its services or some time it’s even
almost impossible to make changes.
NoSQL database can be changed at any instance, i-e
existing columns can be altered and new can be added.
Categories of NoSQL databases
1) Key Value stores
 Don’t have any schema
 Fast lookups facility
 Can be use in a forum software where user’s statistic and
messages are recorded. User’s id will serve as a key and
will retrieve a string that represents all the relevant info of
the user. And a background process recalculates the
information and writes to the store independently after fixed
interval of time.
 Example
 Redis : Redis is an open source, advanced key-
value store. It is often referred to as a data
structure server since keys (data types) can
contain strings, hashes, lists, sets and sorted
sets.
Categories (cont…)
  API: Tons of languages, Written in: C,
 Concurrency: in memory and saves asynchronous disk after a
defined time.
2) Document databases
 web application
 tolerance of incomplete data
 low query performance
 no standard query syntax
 Used when we don’t have complete data about all the
entities of database but we still need to create database.
Example
CouchDB:  API: JSON, Protocol: REST, Query Method:
MapReduceR of JavaScript Funcs, Replication: Master
Master, Written in: Erlang.
Categories (cont…)
 MongoDBMongoDB: API: BSON, Protocol: lots of langs,: API: BSON, Protocol: lots of langs,
Query Method: dynamic object-based language,Query Method: dynamic object-based language,
Replication: Master Slave, Written in: C++.Replication: Master Slave, Written in: C++.
3) Graph databases
 Social networkingSocial networking
 graph algorithms, connectedness, degree of relationshipsgraph algorithms, connectedness, degree of relationships
 has to traverse the entire graph to get definitive answer.has to traverse the entire graph to get definitive answer.
 not easy to cluster.not easy to cluster.
 used in a situation where we want to analyze the on goingused in a situation where we want to analyze the on going
trends and take decision on the basis of those trends.trends and take decision on the basis of those trends.
Categories (cont…)
 Example:Example:
Neo4J:Neo4J:  API: lots of langs, Protocol: Java embedded /  API: lots of langs, Protocol: Java embedded /
REST, Query Method: SparQL, nativeJavaAPI, JRuby,REST, Query Method: SparQL, nativeJavaAPI, JRuby,
Replication: typical MySQL style master/slave, Written in:Replication: typical MySQL style master/slave, Written in:
Java, Concurrency: non-block reads, writes locks involvedJava, Concurrency: non-block reads, writes locks involved
nodes/relationships until commit, Misc: ACID possiblenodes/relationships until commit, Misc: ACID possible
4) XML databases
 Publishing
 mature search technologies
 schema validation
 re-writing is easier than updating
Categories (cont…)
 Used in a situation where one wants to produce documents
of articles etc from a huge amount of documents but the
format of those article doesn’t allow the publisher to perform
search on it. Those articles are converted into xml database
and wrap it in a readable-URL web service for the document
production systems.
5) Distributed Peer Stores
 distributed file systems
 Fast lookups
 Good distributed storage of data
 Very low level API
 Best for voting system. In such a situation one store/user
and one store/piece of content is created. The user store
will hold all the votes they have ever casted and the
content will store a copy of the content on which vote
was casted.
Categories (cont…)
ExampleExample
Cassandra:Cassandra: API: many Thrift languages, Query Method:API: many Thrift languages, Query Method:
MapReduce, Written in: Java, Concurrency: eventuallyMapReduce, Written in: Java, Concurrency: eventually
consistent , Misc: like "Big-Table on Amazon Dynamoconsistent , Misc: like "Big-Table on Amazon Dynamo
alike",  initiated by Facebook.alike",  initiated by Facebook.
Tabular comparison:
The End…
 Any Confusion…???

More Related Content

PDF
NOSQL- Presentation on NoSQL
PDF
The Coming Database Revolution
PPT
NoSQL Slideshare Presentation
PPTX
An Intro to NoSQL Databases
PPTX
Introduction to NoSQL Databases
PPTX
NoSQL databases
PPTX
Nosql databases
PPTX
NoSQL Introduction
NOSQL- Presentation on NoSQL
The Coming Database Revolution
NoSQL Slideshare Presentation
An Intro to NoSQL Databases
Introduction to NoSQL Databases
NoSQL databases
Nosql databases
NoSQL Introduction

What's hot (20)

PDF
NoSQL databases
PPTX
NOSQL Databases types and Uses
PPTX
Introduction to NoSQL
PDF
Electron, databases, and RxDB
PPTX
Non relational databases-no sql
PPSX
A Seminar on NoSQL Databases.
PDF
FITC presents: Mobile & offline data synchronization in Angular JS
PPTX
Selecting best NoSQL
PPTX
PDF
Apache CouchDB
PPTX
NOSQL vs SQL
PDF
Introduction to NoSQL
ODP
PDF
Relational vs. Non-Relational
PPTX
An introduction to Nosql
PPTX
NoSQL databases - An introduction
PPTX
NoSQL Data Architecture Patterns
PPTX
Mongodb - NoSql Database
PPTX
The CIOs Guide to NoSQL
PDF
Intro to NoSQL and MongoDB
NoSQL databases
NOSQL Databases types and Uses
Introduction to NoSQL
Electron, databases, and RxDB
Non relational databases-no sql
A Seminar on NoSQL Databases.
FITC presents: Mobile & offline data synchronization in Angular JS
Selecting best NoSQL
Apache CouchDB
NOSQL vs SQL
Introduction to NoSQL
Relational vs. Non-Relational
An introduction to Nosql
NoSQL databases - An introduction
NoSQL Data Architecture Patterns
Mongodb - NoSql Database
The CIOs Guide to NoSQL
Intro to NoSQL and MongoDB
Ad

Viewers also liked (16)

PDF
NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...
PDF
Nosql databases for the .net developer
PPT
NOSQL Database: Apache Cassandra
PPTX
A practical introduction to Oracle NoSQL Database - OOW2014
PPTX
Big Data and NoSQL for Database and BI Pros
PPT
Project Risk Management
PDF
Using Spring with NoSQL databases (SpringOne China 2012)
PDF
NoSQL-Database-Concepts
PPTX
Sql ppt
KEY
NoSQL databases and managing big data
PDF
NoSQL Databases, Not just a Buzzword
PPTX
Test Automation for NoSQL Databases
PDF
Oracle NoSQL Database release 3.0 overview
KEY
NoSQL Databases: Why, what and when
PDF
NoSQL Now! NoSQL Architecture Patterns
PPTX
Nosql databases
NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...
Nosql databases for the .net developer
NOSQL Database: Apache Cassandra
A practical introduction to Oracle NoSQL Database - OOW2014
Big Data and NoSQL for Database and BI Pros
Project Risk Management
Using Spring with NoSQL databases (SpringOne China 2012)
NoSQL-Database-Concepts
Sql ppt
NoSQL databases and managing big data
NoSQL Databases, Not just a Buzzword
Test Automation for NoSQL Databases
Oracle NoSQL Database release 3.0 overview
NoSQL Databases: Why, what and when
NoSQL Now! NoSQL Architecture Patterns
Nosql databases
Ad

Similar to NoSql Databases (20)

PPTX
No sq lv2
PPTX
PPTX
Introduction to Data Science NoSQL.pptx
PDF
NoSql and it's introduction features-Unit-1.pdf
PDF
NOSQL in big data is the not only structure langua.pdf
PPTX
unit2-ppt1.pptx
PPTX
NoSQL(NOT ONLY SQL)
PPTX
NoSQL.pptx
PPTX
PPTX
Sql vs NoSQL
PDF
NOsql Presentation.pdf
PPTX
cours database pour etudiant NoSQL (1).pptx
PDF
the rising no sql technology
PPTX
UNIT I Introduction to NoSQL.pptx
PPTX
NoSQL Basics and MongDB
PDF
NoSQL Databases Introduction - UTN 2013
PPTX
Introduction to NoSQL
PPTX
No SQL- The Future Of Data Storage
PDF
Big Data technology Landscape
PDF
Couchbase 3.0.2 d1
No sq lv2
Introduction to Data Science NoSQL.pptx
NoSql and it's introduction features-Unit-1.pdf
NOSQL in big data is the not only structure langua.pdf
unit2-ppt1.pptx
NoSQL(NOT ONLY SQL)
NoSQL.pptx
Sql vs NoSQL
NOsql Presentation.pdf
cours database pour etudiant NoSQL (1).pptx
the rising no sql technology
UNIT I Introduction to NoSQL.pptx
NoSQL Basics and MongDB
NoSQL Databases Introduction - UTN 2013
Introduction to NoSQL
No SQL- The Future Of Data Storage
Big Data technology Landscape
Couchbase 3.0.2 d1

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Electronic commerce courselecture one. Pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Approach and Philosophy of On baking technology
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Network Security Unit 5.pdf for BCA BBA.
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Electronic commerce courselecture one. Pdf
Review of recent advances in non-invasive hemoglobin estimation
Advanced methodologies resolving dimensionality complications for autism neur...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Programs and apps: productivity, graphics, security and other tools
“AI and Expert System Decision Support & Business Intelligence Systems”
Unlocking AI with Model Context Protocol (MCP)
Approach and Philosophy of On baking technology
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Building Integrated photovoltaic BIPV_UPV.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm

NoSql Databases

  • 1. NoSQL Databases. By Nimat Ullah Khattak. 11-MS(IT)-27 & Majid Hussain. 11-MS(IT)-02
  • 2. Overview of The Presentation  NoSQL  Why NoSQL  Categories of NoSQL databases  Comparison of different NoSQL databases.
  • 3. NoSQL  A term which stands for
  • 4. NoSQL (Beginning)  First used by Carlo Strozzi in 1998.  Reintroduced by Eric Evan in 2009.
  • 5. NoSQL(What is NoSQL?)  NoSQL doesn’t mean to stop using SQL. OR SQL won’t be used.  The term refers to those databases that differ from relational databases.  Simply Non-relational databases.
  • 6. Some terms we must know…  ACID (Atomicity, Consistency, Isolation, Durability).  CAP (Consistency, Availability, Partition Tolerance).
  • 7. ACID  Atomicity. All of the operations in the transaction will complete, or none will.  Consistency. The database will be in a consistent state when the transaction begins and ends.  Isolation. The transaction will behave as if it is the only operation being performed upon the database. (No interference of transaction)  Durability. Upon completion of the transaction, the operation will not be reversed.
  • 8. CAP  Consistency. No contradiction b/w data.  Availability. Every operation must terminate in an intended response.  Partition tolerance. Operations will complete, even if individual components are unavailable  NoSQL are based on CAP…
  • 10. Why NoSQL?  NoSQL didn’t come because of the shortfalls of SQL…
  • 11. Why NoSQL (Features)  It provides:  Horizontal scalability  Open-source  Schema-freeness  Easy replication support  Simple API
  • 12. Why NoSQL (Features)  NoSQL databases are eventually consistent / CAP (not ACID).
  • 13. Scalability  To maintain performance.  Horizontal Scalability:  To increase the no-of machines but maintaining proportional performance.  Vertical scalability:  To add more resources to your single machine to optimize performance.
  • 14. Open source  Most of the NoSQL Projects are Open source. So any one can use, modify it, like  Cassandra by facebook.  Couch and MongoDB.  Neo4j etc  Bigtable by google but only allowed for Google application.
  • 15. Schema freeness  NoSQL databases doesn’t use any fixed schema like relational database.  Internal schema  External schema etc  The original intention of NoSQL is the modern web-scale databases.
  • 16. Easy replication support  The use of redundant resources to improve:  Reliability  Fault-tolerance  Performance
  • 17. Why NoSQL (Benefits) 1. Scaling RDBs weren’t easy to scale out. On the other hand NoSQL DBs are specially designed to scale out.
  • 18. Why NoSQL (Benefits) 2. Big data Single RDBMS is almost unable to handle today’s huge amount of data and the transaction on that data. But Non-Relational databases are specially designed to handle big data.
  • 19. Why NoSQL (Benefits) 3. Needs no Expert DBAs Although RDMS vendors claim that RDBMS provide management facilities but it still need an expert DBA to operate it. In contrast NoSQL DBs don’t need expert DBAs, as it provides automatic repair, data distribution, and simpler data models, which lead to lower administration.
  • 20. Why NoSQL (Benefits) 4. Economics RDBMS requires expensive components for providing efficient service. NoSQL uses cheap commodity servers to manage the same amount of data for which RDBMS needs expensive server. so NoSQL is economical as well.
  • 21. Why NoSQL (Benefits) 5. Flexibility of data models There can occur changes in the requirements of an organization with the passage of time… Changes in RDBMS after its deployment creates many problems and also affects its services or some time it’s even almost impossible to make changes. NoSQL database can be changed at any instance, i-e existing columns can be altered and new can be added.
  • 22. Categories of NoSQL databases 1) Key Value stores  Don’t have any schema  Fast lookups facility  Can be use in a forum software where user’s statistic and messages are recorded. User’s id will serve as a key and will retrieve a string that represents all the relevant info of the user. And a background process recalculates the information and writes to the store independently after fixed interval of time.  Example  Redis : Redis is an open source, advanced key- value store. It is often referred to as a data structure server since keys (data types) can contain strings, hashes, lists, sets and sorted sets.
  • 23. Categories (cont…)   API: Tons of languages, Written in: C,  Concurrency: in memory and saves asynchronous disk after a defined time. 2) Document databases  web application  tolerance of incomplete data  low query performance  no standard query syntax  Used when we don’t have complete data about all the entities of database but we still need to create database. Example CouchDB:  API: JSON, Protocol: REST, Query Method: MapReduceR of JavaScript Funcs, Replication: Master Master, Written in: Erlang.
  • 24. Categories (cont…)  MongoDBMongoDB: API: BSON, Protocol: lots of langs,: API: BSON, Protocol: lots of langs, Query Method: dynamic object-based language,Query Method: dynamic object-based language, Replication: Master Slave, Written in: C++.Replication: Master Slave, Written in: C++. 3) Graph databases  Social networkingSocial networking  graph algorithms, connectedness, degree of relationshipsgraph algorithms, connectedness, degree of relationships  has to traverse the entire graph to get definitive answer.has to traverse the entire graph to get definitive answer.  not easy to cluster.not easy to cluster.  used in a situation where we want to analyze the on goingused in a situation where we want to analyze the on going trends and take decision on the basis of those trends.trends and take decision on the basis of those trends.
  • 25. Categories (cont…)  Example:Example: Neo4J:Neo4J:  API: lots of langs, Protocol: Java embedded /  API: lots of langs, Protocol: Java embedded / REST, Query Method: SparQL, nativeJavaAPI, JRuby,REST, Query Method: SparQL, nativeJavaAPI, JRuby, Replication: typical MySQL style master/slave, Written in:Replication: typical MySQL style master/slave, Written in: Java, Concurrency: non-block reads, writes locks involvedJava, Concurrency: non-block reads, writes locks involved nodes/relationships until commit, Misc: ACID possiblenodes/relationships until commit, Misc: ACID possible 4) XML databases  Publishing  mature search technologies  schema validation  re-writing is easier than updating
  • 26. Categories (cont…)  Used in a situation where one wants to produce documents of articles etc from a huge amount of documents but the format of those article doesn’t allow the publisher to perform search on it. Those articles are converted into xml database and wrap it in a readable-URL web service for the document production systems. 5) Distributed Peer Stores  distributed file systems  Fast lookups  Good distributed storage of data  Very low level API  Best for voting system. In such a situation one store/user and one store/piece of content is created. The user store will hold all the votes they have ever casted and the content will store a copy of the content on which vote was casted.
  • 27. Categories (cont…) ExampleExample Cassandra:Cassandra: API: many Thrift languages, Query Method:API: many Thrift languages, Query Method: MapReduce, Written in: Java, Concurrency: eventuallyMapReduce, Written in: Java, Concurrency: eventually consistent , Misc: like "Big-Table on Amazon Dynamoconsistent , Misc: like "Big-Table on Amazon Dynamo alike",  initiated by Facebook.alike",  initiated by Facebook.
  • 29. The End…  Any Confusion…???