SlideShare a Scribd company logo
 NoSQL

05-March-2014
Wednesday

Jainul A. Musani
(MCA,MPhil,MTech)
2
3

What’s Meaning....??

NOT SQL...???
4

Introduction
• Past Decade – DB Professionals dependent
on RDBMS (Relational Database Systems)
and a single standard supported by all
databases : SQL – Structure Query Language
• Relational Model – E.F.Codd’s 1970.
5

Introduction
• RDBMS - Table Oriented

Relational Database for_
•Storage of Data

•Retrieval of Data
5
6

Staff
No

Staff
Name

Post

Salary

Branch
No

Branch
Address

SL21

John White

Manager

30,000

B005

22 Deer Rd,
London

SG37

Ann Beech

Assistant

12,000

B003

163 Main St,
Glasgow

SG14

David Ford

Supervisor

18,000

B003

163 Main St,
Glasgow

SA9

Mary Howe

Assistant

9,000

B007

16 Argyll St,
Aberdeen

SG5

Susan Brand

Manager

24,000

B003

163 Main St,
Glasgow

SL41

Julie Lee

Assistant

9,000

B005

22 Deer Rd,
London
6
7

Introduction
• Relational Model more suitable to ClientServer programming .

• Easier to maintain data and write
programming for Relational Model.
• Predominant technology for storing
structured data in web and business
applications.
8

Introduction
• Relational Model - relies upon hard-and
fast and Structured rules – ACID rules for
database transactions.
RDBMS

ACID Rules
Classical Relational Database

Atomic
Consistent
Isolated
Durable
10

A.C.I.D. Properties
Atomic
• A Transaction data modification – either
Completed –or – not perform.

Consistent
• At end of Transaction all data in
consistent state.
11

A.C.I.D. Properties
Isolated
• Modification of one data must be
independent of another Transaction.
[other wise outcome of result will be erroneous]

Durable
• When Transaction completed, modification
performed must be permanent in the system.
12

A.C.I.D. Properties

12
NoSQL

What is
NoSQL?
14

What is NoSQL...??
 Non-relational database
management systems,
 Different from traditional
RDBMS in some significant
ways.
15

What is NoSQL...??
 Core of NoSQL database_
 Hash Function – mathematical
algorithm – take variable
length of Input and produce a
consistent, fixedlength Output.
 Key/Value pair is stored for
later retrieval of record.
16

What is NoSQL...??
 Designed for
 distributed data stores where
 very large scale of data storing
needs
(for example Google or Facebook
which collects terabits of data every
day for their users).
17

What is NoSQL...??
 These type of data storing may
not require fixed schema,
avoid join operations and
typically scale horizontally.
18

Scaling...!!!!
 Ability of a System to expand
to meet business needs.
Ex. Web application – allow more
people to use web application
 Vertical Scaling

 Horizontal Scaling
19

Vertical Scaling...!!!!
 Scale Up - add more resources
within the same logical unit to
increase capacity.
Ex. Add more CPUs / increase
memory / add more hard drive
20

Horizontal Scaling...!!!!
 Scale Out - add more nodes to
system.
Ex. Add new computer to
distributed software application.
In NoSQL system, data store can be
much faster as it takes advantage
of “scaling out”
NoSQL

Term NoSQL
by Carlo Strozzi
Year 1998
NoSQL

Why is
NoSQL?
23

Why NoSQL ?
 In today’s time data is
becoming easier to access and
capture through third parties
such as Facebook, Google+ and
others.
24

Why NoSQL ?
 Personal user information,
 Social graphs,
 Geo location data,
 User-generated content and
 Machine logging data
are just a few examples where the
data has been increasing
exponentially.
25

Why NoSQL ?
 To avail the above service
properly, it is required to
process huge amount of data.
 Which SQL databases were
never designed. The evolution
of NoSql databases is to handle
these huge data properly.
26

26
27

What’s there in NoSQL ?
 Instead of using structured
tables to store multiple related
attributes in a row, NoSQL
databases use the concept of a
key/value store.
28

What’s there in NoSQL ?
 No schema for the database.
 Stores values for each provided
key, distributes them across
the database and then allows
their efficient retrieval.
29

What’s there in NoSQL ?
 Lack of a schema prevents
complex queries and
essentially prevents the use of
NoSQL as a transactional
database environment
30

RDBMS v/s NoSQL
 Structured and  Stands for Not
organized data
Only SQL
 Structured
 No declarative
query languagequery language
SQL
 No predefined
schema
31

RDBMS v/s NoSQL
 Data and its
relationships
are stored in
separate tables.
 Data
Manipulation

Language, Data
Definition
Language

 Key-Value pair
storage, Column
Store, Document
Store, Graph
databases

 Eventual
consistency
rather ACID
property
32

RDBMS v/s NoSQL
• Tight
Consistency
• BASE
Transaction

 Unstructured
and
unpredictable
data
 CAP Theorem
 Prioritizes high
performance,
high availability

and scalability
NoSQL

CAP
Theorem
(Brewer’s Theorem)
34

CAP Theorem
• When designing any distributed
system. CAP theorem states
that there are three basic
requirements which exist in a
special relation when designing
applications for a distributed
architecture.
35

CAP Theorem
• Consistency - the data in the
database remains consistent
after the execution of an
operation. For example after an
update operation all clients
see the same data.
36

CAP Theorem
• Availability - the system is
always on (service guarantee
availability), no downtime.
37

CAP Theorem
• Partition Tolerance - the
system continues to function
even the communication among
the servers is unreliable, i.e.
the servers may be partitioned
into multiple groups that cannot
communicate with one another.
38

CAP Theorem
• In theoretically it is impossible
to fulfill all 3 requirements
• CAP provides the basic
requirements for a
distributed system to follow 2
of the 3 requirements
39

CAP Theorem
• CA - Single site cluster, therefore all
nodes are always in contact. When a
partition occurs, the system blocks.
• CP - Some data may not be accessible,
but the rest is still consistent/accurate.
• AP - System is still available under
partitioning, but some of the data
returned may be inaccurate.
40

CAP Theorem

40
NoSQL

The BASE
by Eric Brewer
42

The BASE
 The CAP theorem states that a
distributed computer system
cannot guarantee all of the
following three properties at
the same time:
Consistency
Availability
Partition tolerance
43

The BASE
 A BASE system gives up on
consistency.
 Basically Available indicates
that the system does guarantee
availability, in terms of the CAP
theorem.
44

The BASE
 Soft state indicates that the
state of the system may change
over time, even without input.
This is because of the eventual
consistency model.
45

The BASE
• Eventual consistency indicates
that the system will become
consistent over time, given that
the system doesn't receive
input during that time.
46

ACID v/s BASE
ACID
Atomicity
Consistency
Isolation
Durable

BASE
Basically Available
Soft state
Eventual consistency
47

Pros/Cons - NoSQL
Advantages
High Scalability
Distributed Computing
Lower Cost
Schema Flexibility
Semi-Structured Data
No Complicated Relationship
48

Pros/Cons - NoSQL
Disadvantages
No Standardization
Limited Query Capabilities
Eventual Consistent is not
intuitive to program for
NoSQL

Types of
NoSQL
50

Categories of NoSQL database
1) Document Oriented:
Data is stored as documents.
An example format may be
like - FirstName="Arun",
Address="St. Xavier's Road",
Spouse=[{Name:"Kiran"}],
Children=[{Name:"Rihit", Age:8}]
51

CouchDB, Jackrabbit, MongoDB,
OrientDB, SimpleDB,Terrastore
52

Categories of NoSQL database
2) XML database:
Data is stored in XML
format.
BaseX, eXist, MarkLogic Server
etc.
53

Categories of NoSQL database
3) Graph databases:
Data is stored as a collection
of nodes, where nodes are
analogous to objects in a
programming language.
Nodes are connected using
edges.
54

AllegroGraph, DEX, Neo4j,
FlockDB, Sones GraphDB
55

Categories of NoSQL database
4) Key-value store:
In Key-value-store category of
NoSQL database, an user can
store data in schema-less way.
A key may be strings, hashes,
lists, sets, sorted sets and
values are stored against these
keys.
56

Cassandra, Riak, Redis,
memcached, BigTable etc.
57

Production deployment
 There is a large number of
companies using NoSQL.
 Google, Facebook, Mozilla,
Adobe, Foursquare, LinkedIn,
Digg, McGraw-Hill Education,
Vermont Public Radio
NoSQL

Market &
Business
RoadMap of
NoSQL
59
60
NoSQL

That’s All for
NoSQL
Thank You…!!!

More Related Content

PPTX
PPT
NoSQL databases
PPTX
Introduction to NOSQL databases
PPTX
NoSQL Consepts
PDF
NoSQL Databases
PPTX
NoSQL databases - An introduction
PPT
NoSQL Seminer
PDF
Introduction to NoSQL
NoSQL databases
Introduction to NOSQL databases
NoSQL Consepts
NoSQL Databases
NoSQL databases - An introduction
NoSQL Seminer
Introduction to NoSQL

What's hot (20)

PPTX
Sql vs NoSQL-Presentation
PPT
NoSQL Options Compared
PPTX
Selecting best NoSQL
PPTX
PPT
6 Data Modeling for NoSQL 2/2
PPTX
Appache Cassandra
PPTX
Introduction to NoSQL
PPTX
Chapter1: NoSQL: It’s about making intelligent choices
PPTX
Nosql databases
PDF
NoSQL-Database-Concepts
PPTX
NoSQL Data Architecture Patterns
PDF
NoSQL databases
PDF
NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...
PDF
Cloud Deployments with Apache Hadoop and Apache HBase
PPTX
Chapter 4 terminolgy of keyvalue databses from nosql for mere mortals
PPTX
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.
PPTX
SQL vs NoSQL
PPTX
Rdbms vs. no sql
PDF
the rising no sql technology
Sql vs NoSQL-Presentation
NoSQL Options Compared
Selecting best NoSQL
6 Data Modeling for NoSQL 2/2
Appache Cassandra
Introduction to NoSQL
Chapter1: NoSQL: It’s about making intelligent choices
Nosql databases
NoSQL-Database-Concepts
NoSQL Data Architecture Patterns
NoSQL databases
NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...
Cloud Deployments with Apache Hadoop and Apache HBase
Chapter 4 terminolgy of keyvalue databses from nosql for mere mortals
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.
SQL vs NoSQL
Rdbms vs. no sql
the rising no sql technology
Ad

Viewers also liked (20)

PDF
eCertificate-JAVA-2
PDF
NoSQL databases
PPTX
PDF
Planhub
PPT
P kn plpg 2012
PPTX
RECTAS PARALELAS Y PERPENDICULARES
PPTX
Bcg matricx
DOC
ไม้ตะกู
PDF
01.การกระจายเชื้อเพลิงและแผนpdp
PPTX
Presentation_NEW.PPTX
PDF
Neuroversum - Produktinformation
PPTX
Introdução às Metodologias Ágeis de Desenvolvimento
PDF
Evangelio Ilutsrado, 4º Domingo de Pascua
PPT
Must taitung team
PDF
Wellness at Dartmouth_asessment and recommendations
PPS
24 as-3-mensagens-angelicaspps3335
PPTX
Verden lige nu
PPTX
Introduction to NOSQL And MongoDB
eCertificate-JAVA-2
NoSQL databases
Planhub
P kn plpg 2012
RECTAS PARALELAS Y PERPENDICULARES
Bcg matricx
ไม้ตะกู
01.การกระจายเชื้อเพลิงและแผนpdp
Presentation_NEW.PPTX
Neuroversum - Produktinformation
Introdução às Metodologias Ágeis de Desenvolvimento
Evangelio Ilutsrado, 4º Domingo de Pascua
Must taitung team
Wellness at Dartmouth_asessment and recommendations
24 as-3-mensagens-angelicaspps3335
Verden lige nu
Introduction to NOSQL And MongoDB
Ad

Similar to NoSQL - 05March2014 Seminar (20)

PPTX
PPTX
Relational and non relational database 7
PPTX
nosql.pptx
PDF
NOSQL- Presentation on NoSQL
PDF
NOSQL in big data is the not only structure langua.pdf
PPTX
NOSQL PRESENTATION ON INTRRODUCTION Intro.pptx
PPSX
A Seminar on NoSQL Databases.
PPTX
No sq lv2
PPTX
NoSQL(NOT ONLY SQL)
PPT
NoSQL Fundamentals PowerPoint Presentation
PPTX
UNIT I Introduction to NoSQL.pptx
PPTX
UNIT I Introduction to NoSQL.pptx
PPT
6269441.ppt
PPTX
NoSQL Basics and MongDB
PPTX
مقدمة عن NoSQL بالعربي
PPTX
Presentation on NOSQL and mongodb .pptx
PDF
Nosql Presentation.pdf for DBMS understanding
PPTX
To SQL or NoSQL, that is the question
PDF
NoSql and it's introduction features-Unit-1.pdf
PDF
1. Lecture1_NOSQL_Introduction.pdf
Relational and non relational database 7
nosql.pptx
NOSQL- Presentation on NoSQL
NOSQL in big data is the not only structure langua.pdf
NOSQL PRESENTATION ON INTRRODUCTION Intro.pptx
A Seminar on NoSQL Databases.
No sq lv2
NoSQL(NOT ONLY SQL)
NoSQL Fundamentals PowerPoint Presentation
UNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptx
6269441.ppt
NoSQL Basics and MongDB
مقدمة عن NoSQL بالعربي
Presentation on NOSQL and mongodb .pptx
Nosql Presentation.pdf for DBMS understanding
To SQL or NoSQL, that is the question
NoSql and it's introduction features-Unit-1.pdf
1. Lecture1_NOSQL_Introduction.pdf

More from Jainul Musani (20)

PDF
Core Java Interface Concepts for BCA Studetns
PDF
Java Abstract and Final Class for BCA students
PDF
Java Collection Framework for BCA Students
PDF
Simple Calculator using JavaFx a part of Advance Java
PDF
JavaFx Introduction, Basic JavaFx Architecture
PDF
ASP.NET 2010, WebServices Full Example for BCA Students
PDF
Palindrome Programme in PHP for BCA students
PDF
Leap Year Program in PHP for BCA students
PDF
"PHP and MySQL CRUD Operations for Student Management System"
PDF
Python: The Versatile Programming Language - Introduction
PPTX
Python a Versatile Programming Language - Introduction
PDF
React js t8 - inlinecss
PDF
React js t7 - forms-events
PDF
React js t6 -lifecycle
PDF
React js t5 - state
PDF
React js t4 - components
PDF
React js t3 - es6
PDF
React js t2 - jsx
PDF
React js t1 - introduction
PPTX
ExpressJs Session01
Core Java Interface Concepts for BCA Studetns
Java Abstract and Final Class for BCA students
Java Collection Framework for BCA Students
Simple Calculator using JavaFx a part of Advance Java
JavaFx Introduction, Basic JavaFx Architecture
ASP.NET 2010, WebServices Full Example for BCA Students
Palindrome Programme in PHP for BCA students
Leap Year Program in PHP for BCA students
"PHP and MySQL CRUD Operations for Student Management System"
Python: The Versatile Programming Language - Introduction
Python a Versatile Programming Language - Introduction
React js t8 - inlinecss
React js t7 - forms-events
React js t6 -lifecycle
React js t5 - state
React js t4 - components
React js t3 - es6
React js t2 - jsx
React js t1 - introduction
ExpressJs Session01

Recently uploaded (20)

PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Cell Types and Its function , kingdom of life
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
Basic Mud Logging Guide for educational purpose
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Pre independence Education in Inndia.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Pharma ospi slides which help in ospi learning
Supply Chain Operations Speaking Notes -ICLT Program
102 student loan defaulters named and shamed – Is someone you know on the list?
Cell Types and Its function , kingdom of life
Final Presentation General Medicine 03-08-2024.pptx
Renaissance Architecture: A Journey from Faith to Humanism
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Basic Mud Logging Guide for educational purpose
VCE English Exam - Section C Student Revision Booklet
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Pre independence Education in Inndia.pdf
O7-L3 Supply Chain Operations - ICLT Program
01-Introduction-to-Information-Management.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Pharma ospi slides which help in ospi learning

NoSQL - 05March2014 Seminar