SlideShare a Scribd company logo
1
2What is covered in this presentation?
A brief history of databases
NoSQL WHY, WHAT & WHEN?
Characteristics of NoSQL databases
Aggregate data models
CAP theorem
5 February 2016
Ashwani Kumar
NOSQL Databases
Introduction
 Database - Organized collection of data
 DBMS - Database Management System: a software
package with computer programs that controls the
creation, maintenance and use of a database
 Databases are created to operate large quantities of
information by inputting, storing, retrieving, and
managing that information.
5 February 2016
Ashwani Kumar
NOSQL Databases
3
5 February 2016
Ashwani Kumar
NOSQL Databases
A brief history 4
• Benefits of Relational databases:
Designed for all purposes
ACID
Strong consistancy, concurrency, recovery
Mathematical background
Standard Query language (SQL)
Lots of tools to use with i.e: Reporting services, entity
frameworks, ...
5 February 2016
Ashwani Kumar
NOSQL Databases
Relational databases 5
5 February 2016
Ashwani Kumar
NOSQL Databases
SQL databases 6
5 February 2016
Ashwani Kumar
NOSQL Databases
RDBMS 7
But...
 Relational databases were not built
for distributed applications.
Because...
 Joins are expensive
 Hard to scale horizontally
 Impedance mismatch occurs
 Expensive (product cost, hardware,
Maintenance)
5 February 2016
Ashwani Kumar
NOSQL Databases
NoSQL why, what and when? 8
And....
It’s weak in:
 Speed (performance)
 High availability
 Partition tolerance
5 February 2016
Ashwani Kumar
NOSQL Databases
NoSQL why, what and when? 9
5 February 2016
Ashwani Kumar
NOSQL Databases
Why NOSQL now?? Ans. Driving Trends 11
5 February 2016
Ashwani Kumar
NOSQL Databases
Side note: RDBMS performance 12
But.. What’s NoSQL?
A No SQL database provides a mechanism
for storage and retrieval of data that
employs less constrained consistency
models than traditional relational database
No SQL systems are also referred to as
"NotonlySQL“ to emphasize that they do in
fact allow SQL-like query languages to be
used.
5 February 2016
Ashwani Kumar
NOSQL Databases
But.. What’s NoSQL? 13
NoSQL avoids:
 Overhead of ACID transactions
 Complexity of SQL query
 Burden of up-front schema design
 DBA presence
 Transactions (It should be handled at
application layer)
Provides:
 Easy and frequent changes to DB
 Fast development
 Large data volumes(eg.Google)
 Schema less
5 February 2016
Ashwani Kumar
NOSQL Databases
Characteristics of NoSQL databases 14
5 February 2016
Ashwani Kumar
NOSQL Databases
NoSQL why, what and when? 10
5 February 2016
Ashwani Kumar
NOSQL Databases
NoSQL is getting more & more popular 15
In relational Databases:
 You can’t add a record which does
not fit the schema
 You need to add NULLs to unused
items in a row
 We should consider the datatypes.
i.e : you can’t add a stirng to an
interger field
 You can’t add multiple items in a
field (You should create another
table: primary-key, foreign key,
joins, normalization, ... !!!)
5 February 2016
Ashwani Kumar
NOSQL Databases
What is a schema-less datamodel? 16
In NoSQL Databases:
 There is no schema to consider
 There is no unused cell
 There is no datatype (implicit)
 Most of considerations are done in
application layer
 We gather all items in an aggregate (document)
5 February 2016
Ashwani Kumar
NOSQL Databases
What is a schema-less datamodel? 17
NoSQL databases are classified in four major
datamodels:
• Key-value
• Document
• Column family
• Graph
Each DB has its own query language
5 February 2016
Ashwani Kumar
NOSQL Databases
Aggregate Data Models 18
 Simplest NOSQL databases
 The main idea is the use of a
hash table
 Access data (values) by strings
called keys
 Data has no required format data
may have any format
 Data model: (key, value) pairs
 Basic Operations:
Insert(key,value),
Fetch(key),
Update(key),
Delete(key)
5 February 2016
Ashwani Kumar
NOSQL Databases
Key-value data model 19
 The column is lowest/smallest
instance of data.
 It is a tuple that contains a
name, a value and a timestamp
5 February 2016
Ashwani Kumar
NOSQL Databases
Column family data model 20
Some statistics about Facebook Search (using Cassandra)
 MySQL > 50 GB Data
 Writes Average : ~300 ms
 Reads Average : ~350 ms
 Rewritten with Cassandra > 50 GB Data
 Writes Average : 0.12 ms
 Reads Average : 15 ms
5 February 2016
Ashwani Kumar
NOSQL Databases
Column family data model 21
 Based on Graph Theory.
 Scale vertically, no clustering.
 You can use graph algorithms easily
 Transactions
 ACID
5 February 2016
Ashwani Kumar
NOSQL Databases
Graph data model 22
• Pair each key with complex data
structure known as data structure.
• Indexes are done via B-Trees.
• Documents can contain many different
key-value pairs, or key-array pairs, or
even nested documents.
5 February 2016
Ashwani Kumar
NOSQL Databases
Document based data model 23
5 February 2016
Ashwani Kumar
NOSQL Databases
Document based data model 24
5 February 2016
Ashwani Kumar
NOSQL Databases
SQL vs NOSQL 25
• We need a distributed database system having such features:
• – Fault tolerance
• – High availability
• – Consistency
• – Scalability
Which is impossible!!!
According to CAP theorem
5 February 2016
Ashwani Kumar
NOSQL Databases
What we need ? 26
We can not achieve all the three items
In distributed database systems (center)
5 February 2016
Ashwani Kumar
NOSQL Databases
CAP theorem 27
5 February 2016
Ashwani Kumar
NOSQL Databases
CAP theorem 28
5 February 2016
Ashwani Kumar
NOSQL Databases
Conclusion…. 29
5 February 2016
Ashwani Kumar
NOSQL Databases
References..
 nosql-database.org/
 https://www.mongodb.com/nosql-explained
 www.couchbase.com/nosql-resources/what-is-no-sql
 http://nosql-database.org/ "NoSQL DEFINITION: Next Generation Databases
mostly addressing some of the points: being non-relational, distributed, open-
source and horizontally scalable“
 NoSQL distilled, Martin Fowler
 Please like and follow at www.slideshare.net/AshwaniKumar274
30
5 February 2016
Ashwani Kumar
NOSQL Databases
31

More Related Content

What's hot

NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and Uses
Suvradeep Rudra
 
introduction to NOSQL Database
introduction to NOSQL Databaseintroduction to NOSQL Database
introduction to NOSQL Database
nehabsairam
 
Non Relational Databases
Non Relational DatabasesNon Relational Databases
Non Relational Databases
Chris Baglieri
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
Dr-Dipali Meher
 
NoSql
NoSqlNoSql
Introduction to MongoDB.pptx
Introduction to MongoDB.pptxIntroduction to MongoDB.pptx
Introduction to MongoDB.pptx
Surya937648
 
Big Data Analytics with Hadoop
Big Data Analytics with HadoopBig Data Analytics with Hadoop
Big Data Analytics with Hadoop
Philippe Julio
 
SQL vs. NoSQL Databases
SQL vs. NoSQL DatabasesSQL vs. NoSQL Databases
SQL vs. NoSQL Databases
Osama Jomaa
 
No SQL- The Future Of Data Storage
No SQL- The Future Of Data StorageNo SQL- The Future Of Data Storage
No SQL- The Future Of Data Storage
Bethmi Gunasekara
 
Cassandra Database
Cassandra DatabaseCassandra Database
Cassandra Database
YounesCharfaoui
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
Ravi Teja
 
Key-Value NoSQL Database
Key-Value NoSQL DatabaseKey-Value NoSQL Database
Key-Value NoSQL Database
Heman Hosainpana
 
NOSQL vs SQL
NOSQL vs SQLNOSQL vs SQL
NOSQL vs SQL
Mohammed Fazuluddin
 
SQL/NoSQL How to choose ?
SQL/NoSQL How to choose ?SQL/NoSQL How to choose ?
SQL/NoSQL How to choose ?
Venu Anuganti
 
Mongodb - NoSql Database
Mongodb - NoSql DatabaseMongodb - NoSql Database
Mongodb - NoSql Database
Prashant Gupta
 
Introduction to Apache Spark
Introduction to Apache SparkIntroduction to Apache Spark
Introduction to Apache Spark
Rahul Jain
 
NoSQL Databases
NoSQL DatabasesNoSQL Databases
NoSQL Databases
BADR
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
Filip Ilievski
 

What's hot (20)

NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and Uses
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
introduction to NOSQL Database
introduction to NOSQL Databaseintroduction to NOSQL Database
introduction to NOSQL Database
 
Non Relational Databases
Non Relational DatabasesNon Relational Databases
Non Relational Databases
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
NoSql
NoSqlNoSql
NoSql
 
Introduction to MongoDB.pptx
Introduction to MongoDB.pptxIntroduction to MongoDB.pptx
Introduction to MongoDB.pptx
 
Big Data Analytics with Hadoop
Big Data Analytics with HadoopBig Data Analytics with Hadoop
Big Data Analytics with Hadoop
 
SQL vs. NoSQL Databases
SQL vs. NoSQL DatabasesSQL vs. NoSQL Databases
SQL vs. NoSQL Databases
 
No SQL- The Future Of Data Storage
No SQL- The Future Of Data StorageNo SQL- The Future Of Data Storage
No SQL- The Future Of Data Storage
 
Cassandra Database
Cassandra DatabaseCassandra Database
Cassandra Database
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
Key-Value NoSQL Database
Key-Value NoSQL DatabaseKey-Value NoSQL Database
Key-Value NoSQL Database
 
NOSQL vs SQL
NOSQL vs SQLNOSQL vs SQL
NOSQL vs SQL
 
SQL/NoSQL How to choose ?
SQL/NoSQL How to choose ?SQL/NoSQL How to choose ?
SQL/NoSQL How to choose ?
 
Mongodb - NoSql Database
Mongodb - NoSql DatabaseMongodb - NoSql Database
Mongodb - NoSql Database
 
Introduction to Apache Spark
Introduction to Apache SparkIntroduction to Apache Spark
Introduction to Apache Spark
 
NoSQL Databases
NoSQL DatabasesNoSQL Databases
NoSQL Databases
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
 
MongoDB
MongoDBMongoDB
MongoDB
 

Viewers also liked

Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
Dimitar Danailov
 
High Voltage Pulse Stimulation
High Voltage Pulse StimulationHigh Voltage Pulse Stimulation
High Voltage Pulse Stimulation
Ashwani Kumar
 
Palm Vein Technology
Palm Vein TechnologyPalm Vein Technology
Palm Vein Technology
Ashwani Kumar
 
Oracle corporation
Oracle corporationOracle corporation
Oracle corporation
Ashwani Kumar
 
Nosql why and how on Microsoft Azure
Nosql why and how on Microsoft AzureNosql why and how on Microsoft Azure
Nosql why and how on Microsoft Azure
Vito Flavio Lorusso
 
Winning at Personalized Customer Engagement
Winning at Personalized Customer EngagementWinning at Personalized Customer Engagement
Winning at Personalized Customer Engagement
Marketo
 
Palm Vein Technology
Palm Vein TechnologyPalm Vein Technology
Palm Vein Technology
Ashwani Kumar
 
Hvps & Interferential Stimulation
Hvps & Interferential StimulationHvps & Interferential Stimulation
Hvps & Interferential StimulationJLS10
 
Common Entrepreneur Mistakes
Common Entrepreneur MistakesCommon Entrepreneur Mistakes
Common Entrepreneur Mistakes
Bart Greenberg
 
Building A Stable, Fundable Startup
Building A Stable, Fundable StartupBuilding A Stable, Fundable Startup
Building A Stable, Fundable Startup
portlandten
 
Startups: Attracting and Retaining Talent (updated 3/6/13)
Startups: Attracting and Retaining Talent (updated 3/6/13)Startups: Attracting and Retaining Talent (updated 3/6/13)
Startups: Attracting and Retaining Talent (updated 3/6/13)
Patrick Seaman
 
Employee equity incentives
Employee equity incentivesEmployee equity incentives
Employee equity incentivesBart Greenberg
 
Kaplowitch equity dos and donts
Kaplowitch equity dos and dontsKaplowitch equity dos and donts
Kaplowitch equity dos and dontsBFBootcamp
 
Guaranteed vs Incentive Pay - What's the Right Balance?
Guaranteed vs Incentive Pay - What's the Right Balance?Guaranteed vs Incentive Pay - What's the Right Balance?
Guaranteed vs Incentive Pay - What's the Right Balance?
The VisionLink Advisory Group
 
10 Movies Every Entrepreneur Should Watch
10 Movies Every Entrepreneur Should Watch10 Movies Every Entrepreneur Should Watch
10 Movies Every Entrepreneur Should Watch
LawTrades
 
Succession Planning using Equity Incentive Plan and ESOPs
Succession Planning using Equity Incentive Plan and ESOPsSuccession Planning using Equity Incentive Plan and ESOPs
Succession Planning using Equity Incentive Plan and ESOPswifilawgroup
 
Negotiating as Consultant
Negotiating as ConsultantNegotiating as Consultant
Negotiating as Consultant
Jamie Lee
 
Converting Employees to Owners: Employee Share Purchase Plans
Converting Employees to Owners: Employee Share Purchase PlansConverting Employees to Owners: Employee Share Purchase Plans
Converting Employees to Owners: Employee Share Purchase Plans
Now Dentons
 
Startup Equity - Startup summer camp, 2014
Startup Equity - Startup summer camp, 2014Startup Equity - Startup summer camp, 2014
Startup Equity - Startup summer camp, 2014
Pankaj Saharan
 

Viewers also liked (20)

Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
High Voltage Pulse Stimulation
High Voltage Pulse StimulationHigh Voltage Pulse Stimulation
High Voltage Pulse Stimulation
 
Palm Vein Technology
Palm Vein TechnologyPalm Vein Technology
Palm Vein Technology
 
Oracle corporation
Oracle corporationOracle corporation
Oracle corporation
 
Nosql why and how on Microsoft Azure
Nosql why and how on Microsoft AzureNosql why and how on Microsoft Azure
Nosql why and how on Microsoft Azure
 
Winning at Personalized Customer Engagement
Winning at Personalized Customer EngagementWinning at Personalized Customer Engagement
Winning at Personalized Customer Engagement
 
Palm Vein Technology
Palm Vein TechnologyPalm Vein Technology
Palm Vein Technology
 
Hvps & Interferential Stimulation
Hvps & Interferential StimulationHvps & Interferential Stimulation
Hvps & Interferential Stimulation
 
Common Entrepreneur Mistakes
Common Entrepreneur MistakesCommon Entrepreneur Mistakes
Common Entrepreneur Mistakes
 
Building A Stable, Fundable Startup
Building A Stable, Fundable StartupBuilding A Stable, Fundable Startup
Building A Stable, Fundable Startup
 
Startups: Attracting and Retaining Talent (updated 3/6/13)
Startups: Attracting and Retaining Talent (updated 3/6/13)Startups: Attracting and Retaining Talent (updated 3/6/13)
Startups: Attracting and Retaining Talent (updated 3/6/13)
 
Employee equity incentives
Employee equity incentivesEmployee equity incentives
Employee equity incentives
 
Kaplowitch equity dos and donts
Kaplowitch equity dos and dontsKaplowitch equity dos and donts
Kaplowitch equity dos and donts
 
Guaranteed vs Incentive Pay - What's the Right Balance?
Guaranteed vs Incentive Pay - What's the Right Balance?Guaranteed vs Incentive Pay - What's the Right Balance?
Guaranteed vs Incentive Pay - What's the Right Balance?
 
10 Movies Every Entrepreneur Should Watch
10 Movies Every Entrepreneur Should Watch10 Movies Every Entrepreneur Should Watch
10 Movies Every Entrepreneur Should Watch
 
Succession Planning using Equity Incentive Plan and ESOPs
Succession Planning using Equity Incentive Plan and ESOPsSuccession Planning using Equity Incentive Plan and ESOPs
Succession Planning using Equity Incentive Plan and ESOPs
 
Negotiating as Consultant
Negotiating as ConsultantNegotiating as Consultant
Negotiating as Consultant
 
Converting Employees to Owners: Employee Share Purchase Plans
Converting Employees to Owners: Employee Share Purchase PlansConverting Employees to Owners: Employee Share Purchase Plans
Converting Employees to Owners: Employee Share Purchase Plans
 
Startup Equity - Startup summer camp, 2014
Startup Equity - Startup summer camp, 2014Startup Equity - Startup summer camp, 2014
Startup Equity - Startup summer camp, 2014
 
ESOPs LEGAL & PROCEDURAL ASPECTS
ESOPs LEGAL & PROCEDURAL ASPECTSESOPs LEGAL & PROCEDURAL ASPECTS
ESOPs LEGAL & PROCEDURAL ASPECTS
 

Similar to Introduction to NOSQL databases

SQL VS NoSQL
SQL VS NoSQLSQL VS NoSQL
SQL VS NoSQL
simonedaniels3
 
Erciyes university
Erciyes universityErciyes university
Erciyes university
hothaifa alkhazraji
 
SQL & NoSQL
SQL & NoSQLSQL & NoSQL
Unit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docxUnit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docx
vvpadhu
 
the rising no sql technology
the rising no sql technologythe rising no sql technology
the rising no sql technology
INFOGAIN PUBLICATION
 
NoSQL Basics and MongDB
NoSQL Basics and  MongDBNoSQL Basics and  MongDB
NoSQL Basics and MongDB
Shamima Yeasmin Mukta
 
NoSQL and SQL Databases
NoSQL and SQL DatabasesNoSQL and SQL Databases
NoSQL and SQL Databases
Gaurav Paliwal
 
NoSQL - 05March2014 Seminar
NoSQL - 05March2014 SeminarNoSQL - 05March2014 Seminar
NoSQL - 05March2014 Seminar
Jainul Musani
 
Sql vs NO-SQL database differences explained
Sql vs NO-SQL database differences explainedSql vs NO-SQL database differences explained
Sql vs NO-SQL database differences explained
Satya Pal
 
Introduction to NoSQL and MongoDB
Introduction to NoSQL and MongoDBIntroduction to NoSQL and MongoDB
Introduction to NoSQL and MongoDB
Ahmed Farag
 
Azure SQL DWH
Azure SQL DWHAzure SQL DWH
Azure SQL DWH
Shy Engelberg
 
DEE 431 Introduction to Mysql Slide 3
DEE 431 Introduction to Mysql Slide 3DEE 431 Introduction to Mysql Slide 3
DEE 431 Introduction to Mysql Slide 3
YOGESH SINGH
 
Non relational databases-no sql
Non relational databases-no sqlNon relational databases-no sql
Non relational databases-no sql
Ram kumar
 
Why no sql ? Why Couchbase ?
Why no sql ? Why Couchbase ?Why no sql ? Why Couchbase ?
Why no sql ? Why Couchbase ?
Ahmed Rashwan
 
unit2-ppt1.pptx
unit2-ppt1.pptxunit2-ppt1.pptx
unit2-ppt1.pptx
revathigollu23
 
Mongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorialMongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorial
Mohan Rathour
 
1. introduction to no sql
1. introduction to no sql1. introduction to no sql
1. introduction to no sql
Anuja Gunale
 
Introduction to asdfghjkln b vfgh n v
Introduction to asdfghjkln b vfgh n    vIntroduction to asdfghjkln b vfgh n    v
Introduction to asdfghjkln b vfgh n v
23mz02
 

Similar to Introduction to NOSQL databases (20)

NoSQL Seminer
NoSQL SeminerNoSQL Seminer
NoSQL Seminer
 
SQL VS NoSQL
SQL VS NoSQLSQL VS NoSQL
SQL VS NoSQL
 
Erciyes university
Erciyes universityErciyes university
Erciyes university
 
SQL & NoSQL
SQL & NoSQLSQL & NoSQL
SQL & NoSQL
 
Unit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docxUnit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docx
 
the rising no sql technology
the rising no sql technologythe rising no sql technology
the rising no sql technology
 
NoSQL Basics and MongDB
NoSQL Basics and  MongDBNoSQL Basics and  MongDB
NoSQL Basics and MongDB
 
NoSQL and SQL Databases
NoSQL and SQL DatabasesNoSQL and SQL Databases
NoSQL and SQL Databases
 
NoSQL - 05March2014 Seminar
NoSQL - 05March2014 SeminarNoSQL - 05March2014 Seminar
NoSQL - 05March2014 Seminar
 
Sql vs NO-SQL database differences explained
Sql vs NO-SQL database differences explainedSql vs NO-SQL database differences explained
Sql vs NO-SQL database differences explained
 
Introduction to NoSQL and MongoDB
Introduction to NoSQL and MongoDBIntroduction to NoSQL and MongoDB
Introduction to NoSQL and MongoDB
 
Azure SQL DWH
Azure SQL DWHAzure SQL DWH
Azure SQL DWH
 
DEE 431 Introduction to Mysql Slide 3
DEE 431 Introduction to Mysql Slide 3DEE 431 Introduction to Mysql Slide 3
DEE 431 Introduction to Mysql Slide 3
 
Non relational databases-no sql
Non relational databases-no sqlNon relational databases-no sql
Non relational databases-no sql
 
Why no sql ? Why Couchbase ?
Why no sql ? Why Couchbase ?Why no sql ? Why Couchbase ?
Why no sql ? Why Couchbase ?
 
No sql
No sqlNo sql
No sql
 
unit2-ppt1.pptx
unit2-ppt1.pptxunit2-ppt1.pptx
unit2-ppt1.pptx
 
Mongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorialMongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorial
 
1. introduction to no sql
1. introduction to no sql1. introduction to no sql
1. introduction to no sql
 
Introduction to asdfghjkln b vfgh n v
Introduction to asdfghjkln b vfgh n    vIntroduction to asdfghjkln b vfgh n    v
Introduction to asdfghjkln b vfgh n v
 

Recently uploaded

Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 

Recently uploaded (20)

Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 

Introduction to NOSQL databases

  • 1. 1
  • 2. 2What is covered in this presentation? A brief history of databases NoSQL WHY, WHAT & WHEN? Characteristics of NoSQL databases Aggregate data models CAP theorem 5 February 2016 Ashwani Kumar NOSQL Databases
  • 3. Introduction  Database - Organized collection of data  DBMS - Database Management System: a software package with computer programs that controls the creation, maintenance and use of a database  Databases are created to operate large quantities of information by inputting, storing, retrieving, and managing that information. 5 February 2016 Ashwani Kumar NOSQL Databases 3
  • 4. 5 February 2016 Ashwani Kumar NOSQL Databases A brief history 4
  • 5. • Benefits of Relational databases: Designed for all purposes ACID Strong consistancy, concurrency, recovery Mathematical background Standard Query language (SQL) Lots of tools to use with i.e: Reporting services, entity frameworks, ... 5 February 2016 Ashwani Kumar NOSQL Databases Relational databases 5
  • 6. 5 February 2016 Ashwani Kumar NOSQL Databases SQL databases 6
  • 7. 5 February 2016 Ashwani Kumar NOSQL Databases RDBMS 7
  • 8. But...  Relational databases were not built for distributed applications. Because...  Joins are expensive  Hard to scale horizontally  Impedance mismatch occurs  Expensive (product cost, hardware, Maintenance) 5 February 2016 Ashwani Kumar NOSQL Databases NoSQL why, what and when? 8
  • 9. And.... It’s weak in:  Speed (performance)  High availability  Partition tolerance 5 February 2016 Ashwani Kumar NOSQL Databases NoSQL why, what and when? 9
  • 10. 5 February 2016 Ashwani Kumar NOSQL Databases Why NOSQL now?? Ans. Driving Trends 11
  • 11. 5 February 2016 Ashwani Kumar NOSQL Databases Side note: RDBMS performance 12
  • 12. But.. What’s NoSQL? A No SQL database provides a mechanism for storage and retrieval of data that employs less constrained consistency models than traditional relational database No SQL systems are also referred to as "NotonlySQL“ to emphasize that they do in fact allow SQL-like query languages to be used. 5 February 2016 Ashwani Kumar NOSQL Databases But.. What’s NoSQL? 13
  • 13. NoSQL avoids:  Overhead of ACID transactions  Complexity of SQL query  Burden of up-front schema design  DBA presence  Transactions (It should be handled at application layer) Provides:  Easy and frequent changes to DB  Fast development  Large data volumes(eg.Google)  Schema less 5 February 2016 Ashwani Kumar NOSQL Databases Characteristics of NoSQL databases 14
  • 14. 5 February 2016 Ashwani Kumar NOSQL Databases NoSQL why, what and when? 10
  • 15. 5 February 2016 Ashwani Kumar NOSQL Databases NoSQL is getting more & more popular 15
  • 16. In relational Databases:  You can’t add a record which does not fit the schema  You need to add NULLs to unused items in a row  We should consider the datatypes. i.e : you can’t add a stirng to an interger field  You can’t add multiple items in a field (You should create another table: primary-key, foreign key, joins, normalization, ... !!!) 5 February 2016 Ashwani Kumar NOSQL Databases What is a schema-less datamodel? 16
  • 17. In NoSQL Databases:  There is no schema to consider  There is no unused cell  There is no datatype (implicit)  Most of considerations are done in application layer  We gather all items in an aggregate (document) 5 February 2016 Ashwani Kumar NOSQL Databases What is a schema-less datamodel? 17
  • 18. NoSQL databases are classified in four major datamodels: • Key-value • Document • Column family • Graph Each DB has its own query language 5 February 2016 Ashwani Kumar NOSQL Databases Aggregate Data Models 18
  • 19.  Simplest NOSQL databases  The main idea is the use of a hash table  Access data (values) by strings called keys  Data has no required format data may have any format  Data model: (key, value) pairs  Basic Operations: Insert(key,value), Fetch(key), Update(key), Delete(key) 5 February 2016 Ashwani Kumar NOSQL Databases Key-value data model 19
  • 20.  The column is lowest/smallest instance of data.  It is a tuple that contains a name, a value and a timestamp 5 February 2016 Ashwani Kumar NOSQL Databases Column family data model 20
  • 21. Some statistics about Facebook Search (using Cassandra)  MySQL > 50 GB Data  Writes Average : ~300 ms  Reads Average : ~350 ms  Rewritten with Cassandra > 50 GB Data  Writes Average : 0.12 ms  Reads Average : 15 ms 5 February 2016 Ashwani Kumar NOSQL Databases Column family data model 21
  • 22.  Based on Graph Theory.  Scale vertically, no clustering.  You can use graph algorithms easily  Transactions  ACID 5 February 2016 Ashwani Kumar NOSQL Databases Graph data model 22
  • 23. • Pair each key with complex data structure known as data structure. • Indexes are done via B-Trees. • Documents can contain many different key-value pairs, or key-array pairs, or even nested documents. 5 February 2016 Ashwani Kumar NOSQL Databases Document based data model 23
  • 24. 5 February 2016 Ashwani Kumar NOSQL Databases Document based data model 24
  • 25. 5 February 2016 Ashwani Kumar NOSQL Databases SQL vs NOSQL 25
  • 26. • We need a distributed database system having such features: • – Fault tolerance • – High availability • – Consistency • – Scalability Which is impossible!!! According to CAP theorem 5 February 2016 Ashwani Kumar NOSQL Databases What we need ? 26
  • 27. We can not achieve all the three items In distributed database systems (center) 5 February 2016 Ashwani Kumar NOSQL Databases CAP theorem 27
  • 28. 5 February 2016 Ashwani Kumar NOSQL Databases CAP theorem 28
  • 29. 5 February 2016 Ashwani Kumar NOSQL Databases Conclusion…. 29
  • 30. 5 February 2016 Ashwani Kumar NOSQL Databases References..  nosql-database.org/  https://www.mongodb.com/nosql-explained  www.couchbase.com/nosql-resources/what-is-no-sql  http://nosql-database.org/ "NoSQL DEFINITION: Next Generation Databases mostly addressing some of the points: being non-relational, distributed, open- source and horizontally scalable“  NoSQL distilled, Martin Fowler  Please like and follow at www.slideshare.net/AshwaniKumar274 30
  • 31. 5 February 2016 Ashwani Kumar NOSQL Databases 31