SlideShare a Scribd company logo
1 of 27
Government Polytechnic Aurangabad
• Name : Zodge Prakash Rajesh
• Roll no : 147062
• Branch : Information Technology
• Year : 3rd Year
• Semester : 5th
• Guide : Dahiwal Sir
NoSql
Contents
 Introduction
 History of NoSql
 Why NoSQL
 CAP Theorem
 Data Models
 Advantages & Disadvantages
 RDBMS vs NoSql
 Limitations
 Companies using NoSQL
 Conclusion
 References
Introduction
In today’s time data is becoming easier to access and capture through
third parties such as Facebook, Google and others. 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. To avail the above service properly, it is
required to process huge amount of data. The evolution of NoSql
databases is to handle these huge data properly.
Continued…
NoSQL is a non-relational database management
systems, different from traditional relational
database management systems in some significant
ways. It is 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).
NoSQL provides ACID transactions.
History
 The term NoSQL was coined by Carlo Strozzi in the year 1998.
 In the early 2009, when last.fm wanted to organize an event on open-source
distributed databases, Eric Evans, a Rackspace employee, reused the term
to refer databases which are non-relational, distributed, and does not
conform to atomicity, consistency, isolation, durability - four obvious features
of traditional relational database systems.
 In the same year, the "no:sql(east)" conference held in Atlanta, USA, NoSQL
was discussed and debated a lot.
 And then, discussion and practice of NoSQL got a momentum, and NoSQL
saw an unprecedented growth.
Why NoSQL?
CAP Theorem
You must understand the CAP theorem when you talk about NoSQL databases
or in fact 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.
 Consistency - This means that 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.
 Availability - This means that the system is always on (service guarantee
availability), no downtime.
Continued..
 Partition Tolerance - This means that 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
Continued…
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. Therefore all the current
NoSQL database follow the different combinations
of the C, A, P from the CAP theorem. Here is the
brief description of three combinations CA, CP, AP
:
 CA - Single site cluster, therefore all nodes are
always in contact. When a partition occurs, the
system blocks.
Continued..
 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.
Categories
There are four general types (most common categories) of NoSQL databases.
Each of these categories has its own specific attributes and limitations. To
clarify the NoSQL databases, lets discuss the most common categories :
 Key-value stores
 Column data model
 Graph data model
 Document data model
Key-value stores
 Key-value stores are most basic types of NoSQL databases.
 Designed to handle huge amounts of data.
 Key value stores allow developer to store schema-less data.
 In the key-value storage, database stores data as hash table where each key
is unique and the value can be string, BLOB (Binary Large OBject) etc.
 A key may be strings, hashes, lists, sets, sorted sets and values are stored
against these keys.
 For example a key-value pair might consist of a key like "Name" that is
associated with a value like “Prakash".
Continued..
Column data model
 Column-oriented databases primarily work on columns and every column is
treated individually.
 Column stores data in column specific files.
 In Column stores, query processors work on columns too.
 Column stores can improve the performance of queries as it can access
specific column data.
 High performance on aggregation queries (e.g. COUNT, SUM, AVG, MIN,
MAX).
 Works on data warehouses and business intelligence, customer relationship
management (CRM), Library card catalogs etc.
Continued…
Row Key: Each row has a unique key, which is a unique identifier for that row.
Column: Each column contains a name, a value, and timestamp.
Name: This is the name of the name/value pair.
Value: This is the value of the name/value pair.
Timestamp: This provides the date and time that the data was inserted. This can be used to
determine the most recent version of data.
Graph data model
 A graph database stores data in a graph.
 A graph database is a collection of nodes and edges
 Each node represents an entity (such as a student or business) and each
edge represents a connection or relationship between two nodes.
 Every node and edge are defined by a unique identifier.
 Each node knows its adjacent nodes.
 As the number of nodes increases, the cost of a local step (or hop) remains
the same.
Continued…
A graph data structure consists of a finite (and
possibly mutable) set of ordered pairs, called
edges or arcs, of certain entities called nodes or
vertices.
The following picture presents a labeled graph
of 6 vertices and 7 edges
Document data model
 A collection of documents
 Data in this model is stored inside documents.
 A document is a key value collection where the key allows access to its
value.
 Documents are stored into collections in order to group different kinds of
data.
 Documents can contain many different key-value pairs, or key-array pairs, or
even nested documents.
Continued..
Advantages & Disadvantages
 Advantages
1. High scalability
2. Distributed Computing
3. Lower cost
4. Schema flexibility
5. No complicated Relationships
Continued…
 Disadvantages
1. No standardization
2. Limited query capabilities
3. Difficult in maintanance
RDBMS vs NoSQL
 RDBMS
- Data arrive from one or few locations
- Structured query language (SQL)
- Transactions written in one location
- Data and its relationships are stored in separate tables.
- Gives read scalability
 NoSQL
- Data arrive from many locations
- Manages structured, unstructured and semi-structured data
- Transaction written in many locations
- Key-Value pair storage, Column Store, Document Store, Graph databases
- Gives both read and write scalability
Companies using NoSql are:
Conclusion
 NoSQL database provides us many benefits, consistency, availability and
partition tolerance.
 It also provides facilities to easily store the graph data, which is not available
with SQL databases. Instead of that, there are some problems with NoSQL
databases.
 NoSql could be the future of storing mostly the ‘unstructured data’ for an
instance social media which deals with huge unstructured data.
References
 https://www.mongodb.com/nosl-explained
 www.couchbase.com/nosql-resources/what-is-no-sql
 http://nosqdatabase.org/
 https://www.geeksforgeeks.org › introduction-to-nosql
Thank You !
Any Questions?

More Related Content

Similar to nosql.pptx

NOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLNOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLRamakant Soni
 
NOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdfNOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdfajajkhan16
 
NoSQL_Databases
NoSQL_DatabasesNoSQL_Databases
NoSQL_DatabasesRick Perry
 
Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Modern databases and its challenges (SQL ,NoSQL, NewSQL)Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Modern databases and its challenges (SQL ,NoSQL, NewSQL)Mohamed Galal
 
A STUDY ON GRAPH STORAGE DATABASE OF NOSQL
A STUDY ON GRAPH STORAGE DATABASE OF NOSQLA STUDY ON GRAPH STORAGE DATABASE OF NOSQL
A STUDY ON GRAPH STORAGE DATABASE OF NOSQLijscai
 
A Study on Graph Storage Database of NOSQL
A Study on Graph Storage Database of NOSQLA Study on Graph Storage Database of NOSQL
A Study on Graph Storage Database of NOSQLIJSCAI Journal
 
A STUDY ON GRAPH STORAGE DATABASE OF NOSQL
A STUDY ON GRAPH STORAGE DATABASE OF NOSQLA STUDY ON GRAPH STORAGE DATABASE OF NOSQL
A STUDY ON GRAPH STORAGE DATABASE OF NOSQLijscai
 
A Study on Graph Storage Database of NOSQL
A Study on Graph Storage Database of NOSQLA Study on Graph Storage Database of NOSQL
A Study on Graph Storage Database of NOSQLIJSCAI Journal
 
Brief introduction to NoSQL by fas mosleh
Brief introduction to NoSQL by fas moslehBrief introduction to NoSQL by fas mosleh
Brief introduction to NoSQL by fas moslehFas (Feisal) Mosleh
 
مقدمة عن NoSQL بالعربي
مقدمة عن NoSQL بالعربيمقدمة عن NoSQL بالعربي
مقدمة عن NoSQL بالعربيMohamed Galal
 
SURVEY ON IMPLEMANTATION OF COLUMN ORIENTED NOSQL DATA STORES ( BIGTABLE & CA...
SURVEY ON IMPLEMANTATION OF COLUMN ORIENTED NOSQL DATA STORES ( BIGTABLE & CA...SURVEY ON IMPLEMANTATION OF COLUMN ORIENTED NOSQL DATA STORES ( BIGTABLE & CA...
SURVEY ON IMPLEMANTATION OF COLUMN ORIENTED NOSQL DATA STORES ( BIGTABLE & CA...IJCERT JOURNAL
 
NoSQL(NOT ONLY SQL)
NoSQL(NOT ONLY SQL)NoSQL(NOT ONLY SQL)
NoSQL(NOT ONLY SQL)Rahul P
 
data base system to new data science lerne
data base system to new data science lernedata base system to new data science lerne
data base system to new data science lernetarunprajapati0t
 
Assignment_4
Assignment_4Assignment_4
Assignment_4Kirti J
 
Non relational databases-no sql
Non relational databases-no sqlNon relational databases-no sql
Non relational databases-no sqlRam kumar
 
Evaluation of graph databases
Evaluation of graph databasesEvaluation of graph databases
Evaluation of graph databasesijaia
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and UsesSuvradeep Rudra
 

Similar to nosql.pptx (20)

NOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLNOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQL
 
NOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdfNOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdf
 
NoSQL_Databases
NoSQL_DatabasesNoSQL_Databases
NoSQL_Databases
 
Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Modern databases and its challenges (SQL ,NoSQL, NewSQL)Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Modern databases and its challenges (SQL ,NoSQL, NewSQL)
 
A STUDY ON GRAPH STORAGE DATABASE OF NOSQL
A STUDY ON GRAPH STORAGE DATABASE OF NOSQLA STUDY ON GRAPH STORAGE DATABASE OF NOSQL
A STUDY ON GRAPH STORAGE DATABASE OF NOSQL
 
A Study on Graph Storage Database of NOSQL
A Study on Graph Storage Database of NOSQLA Study on Graph Storage Database of NOSQL
A Study on Graph Storage Database of NOSQL
 
A STUDY ON GRAPH STORAGE DATABASE OF NOSQL
A STUDY ON GRAPH STORAGE DATABASE OF NOSQLA STUDY ON GRAPH STORAGE DATABASE OF NOSQL
A STUDY ON GRAPH STORAGE DATABASE OF NOSQL
 
A Study on Graph Storage Database of NOSQL
A Study on Graph Storage Database of NOSQLA Study on Graph Storage Database of NOSQL
A Study on Graph Storage Database of NOSQL
 
Brief introduction to NoSQL by fas mosleh
Brief introduction to NoSQL by fas moslehBrief introduction to NoSQL by fas mosleh
Brief introduction to NoSQL by fas mosleh
 
Artigo no sql x relational
Artigo no sql x relationalArtigo no sql x relational
Artigo no sql x relational
 
مقدمة عن NoSQL بالعربي
مقدمة عن NoSQL بالعربيمقدمة عن NoSQL بالعربي
مقدمة عن NoSQL بالعربي
 
unit2-ppt1.pptx
unit2-ppt1.pptxunit2-ppt1.pptx
unit2-ppt1.pptx
 
SURVEY ON IMPLEMANTATION OF COLUMN ORIENTED NOSQL DATA STORES ( BIGTABLE & CA...
SURVEY ON IMPLEMANTATION OF COLUMN ORIENTED NOSQL DATA STORES ( BIGTABLE & CA...SURVEY ON IMPLEMANTATION OF COLUMN ORIENTED NOSQL DATA STORES ( BIGTABLE & CA...
SURVEY ON IMPLEMANTATION OF COLUMN ORIENTED NOSQL DATA STORES ( BIGTABLE & CA...
 
NoSQL(NOT ONLY SQL)
NoSQL(NOT ONLY SQL)NoSQL(NOT ONLY SQL)
NoSQL(NOT ONLY SQL)
 
data base system to new data science lerne
data base system to new data science lernedata base system to new data science lerne
data base system to new data science lerne
 
Datastores
DatastoresDatastores
Datastores
 
Assignment_4
Assignment_4Assignment_4
Assignment_4
 
Non relational databases-no sql
Non relational databases-no sqlNon relational databases-no sql
Non relational databases-no sql
 
Evaluation of graph databases
Evaluation of graph databasesEvaluation of graph databases
Evaluation of graph databases
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and Uses
 

Recently uploaded

Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1GloryAnnCastre1
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvRicaMaeCastro1
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxMichelleTuguinay1
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsPooky Knightsmith
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxDhatriParmar
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 

Recently uploaded (20)

Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of EngineeringFaculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young minds
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 

nosql.pptx

  • 1. Government Polytechnic Aurangabad • Name : Zodge Prakash Rajesh • Roll no : 147062 • Branch : Information Technology • Year : 3rd Year • Semester : 5th • Guide : Dahiwal Sir
  • 3. Contents  Introduction  History of NoSql  Why NoSQL  CAP Theorem  Data Models  Advantages & Disadvantages  RDBMS vs NoSql  Limitations  Companies using NoSQL  Conclusion  References
  • 4. Introduction In today’s time data is becoming easier to access and capture through third parties such as Facebook, Google and others. 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. To avail the above service properly, it is required to process huge amount of data. The evolution of NoSql databases is to handle these huge data properly.
  • 5. Continued… NoSQL is a non-relational database management systems, different from traditional relational database management systems in some significant ways. It is 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). NoSQL provides ACID transactions.
  • 6. History  The term NoSQL was coined by Carlo Strozzi in the year 1998.  In the early 2009, when last.fm wanted to organize an event on open-source distributed databases, Eric Evans, a Rackspace employee, reused the term to refer databases which are non-relational, distributed, and does not conform to atomicity, consistency, isolation, durability - four obvious features of traditional relational database systems.  In the same year, the "no:sql(east)" conference held in Atlanta, USA, NoSQL was discussed and debated a lot.  And then, discussion and practice of NoSQL got a momentum, and NoSQL saw an unprecedented growth.
  • 8. CAP Theorem You must understand the CAP theorem when you talk about NoSQL databases or in fact 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.  Consistency - This means that 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.  Availability - This means that the system is always on (service guarantee availability), no downtime.
  • 9. Continued..  Partition Tolerance - This means that 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
  • 10. Continued… 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. Therefore all the current NoSQL database follow the different combinations of the C, A, P from the CAP theorem. Here is the brief description of three combinations CA, CP, AP :  CA - Single site cluster, therefore all nodes are always in contact. When a partition occurs, the system blocks.
  • 11. Continued..  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.
  • 12. Categories There are four general types (most common categories) of NoSQL databases. Each of these categories has its own specific attributes and limitations. To clarify the NoSQL databases, lets discuss the most common categories :  Key-value stores  Column data model  Graph data model  Document data model
  • 13. Key-value stores  Key-value stores are most basic types of NoSQL databases.  Designed to handle huge amounts of data.  Key value stores allow developer to store schema-less data.  In the key-value storage, database stores data as hash table where each key is unique and the value can be string, BLOB (Binary Large OBject) etc.  A key may be strings, hashes, lists, sets, sorted sets and values are stored against these keys.  For example a key-value pair might consist of a key like "Name" that is associated with a value like “Prakash".
  • 15. Column data model  Column-oriented databases primarily work on columns and every column is treated individually.  Column stores data in column specific files.  In Column stores, query processors work on columns too.  Column stores can improve the performance of queries as it can access specific column data.  High performance on aggregation queries (e.g. COUNT, SUM, AVG, MIN, MAX).  Works on data warehouses and business intelligence, customer relationship management (CRM), Library card catalogs etc.
  • 16. Continued… Row Key: Each row has a unique key, which is a unique identifier for that row. Column: Each column contains a name, a value, and timestamp. Name: This is the name of the name/value pair. Value: This is the value of the name/value pair. Timestamp: This provides the date and time that the data was inserted. This can be used to determine the most recent version of data.
  • 17. Graph data model  A graph database stores data in a graph.  A graph database is a collection of nodes and edges  Each node represents an entity (such as a student or business) and each edge represents a connection or relationship between two nodes.  Every node and edge are defined by a unique identifier.  Each node knows its adjacent nodes.  As the number of nodes increases, the cost of a local step (or hop) remains the same.
  • 18. Continued… A graph data structure consists of a finite (and possibly mutable) set of ordered pairs, called edges or arcs, of certain entities called nodes or vertices. The following picture presents a labeled graph of 6 vertices and 7 edges
  • 19. Document data model  A collection of documents  Data in this model is stored inside documents.  A document is a key value collection where the key allows access to its value.  Documents are stored into collections in order to group different kinds of data.  Documents can contain many different key-value pairs, or key-array pairs, or even nested documents.
  • 21. Advantages & Disadvantages  Advantages 1. High scalability 2. Distributed Computing 3. Lower cost 4. Schema flexibility 5. No complicated Relationships
  • 22. Continued…  Disadvantages 1. No standardization 2. Limited query capabilities 3. Difficult in maintanance
  • 23. RDBMS vs NoSQL  RDBMS - Data arrive from one or few locations - Structured query language (SQL) - Transactions written in one location - Data and its relationships are stored in separate tables. - Gives read scalability  NoSQL - Data arrive from many locations - Manages structured, unstructured and semi-structured data - Transaction written in many locations - Key-Value pair storage, Column Store, Document Store, Graph databases - Gives both read and write scalability
  • 25. Conclusion  NoSQL database provides us many benefits, consistency, availability and partition tolerance.  It also provides facilities to easily store the graph data, which is not available with SQL databases. Instead of that, there are some problems with NoSQL databases.  NoSql could be the future of storing mostly the ‘unstructured data’ for an instance social media which deals with huge unstructured data.
  • 26. References  https://www.mongodb.com/nosl-explained  www.couchbase.com/nosql-resources/what-is-no-sql  http://nosqdatabase.org/  https://www.geeksforgeeks.org › introduction-to-nosql
  • 27. Thank You ! Any Questions?