SlideShare a Scribd company logo
No SQL
Problems With RDBMS
• Should know the entire schema upfront
Problems With RDBMS
• Should know the entire schema upfront
• Every record have same properties [rigid structure]
Problems With RDBMS
• Should know the entire schema upfront
• Every record have same properties [rigid structure]
• Scalability is costly
No SQL
No SQL
No SQL
Problems With RDBMS
• Should know the entire schema upfront
• Every record have same properties [rigid structure]
• Scalability is costly
• Scaling relational database is hard
No SQL
Problems With RDBMS
• Should know the entire schema upfront
• Every record have same properties [rigid structure]
• Scalability is costly
• Scaling relational database is hard
• Normalization
Problems With RDBMS
• Should know the entire schema upfront
• Every record have same properties [rigid structure]
• Scalability is costly
• Scaling relational database is hard
• Normalization
• Altering schema on a running database is expensive
Problems With RDBMS
• Should know the entire schema upfront
• Every record have same properties [rigid structure]
• Scalability is costly
• Scaling relational database is hard
• Normalization
• Altering schema on a running database is expensive
• Horizontal scaling is a problem
Single server Architecture
Problems with single server
architecture
• Load
Problems with single server
architecture
• Failure – Single point of failure
Problems with single server
architecture
• Maintenance – Downtime during manual maintenance
Distributed Database
Advantage of distributed database
• Speed – Files are retrieved from the nearest location
• If one site fails the system can still run.
What is NoSQL ?
Also known as
• non-relational database
• non SQL
• not only SQL
NoSQL are non-tabular databases and store data differently than relational tables.
Student ID Name Course
123 john ML
234 Doe DL
456 Eric Python
Student table
No SQL
Benefits of NoSQL
• When compared to relational databases, NoSQL databases are more scalable
and provide superior performance, and their data model addresses several
issues that the relational model is not designed to address.
• Schema-less
• Data are replicated to multiple nodes(so, identical & fault tolerant)
and can be partitioned:
 no single point of failure
 down nodes can easily be replaced
• Cheap, easy to implement(open source)
• Its all object oriented programming that is easy to use and flexible.
• Running well on clusters – geographically distributed scale-out structure.
Types of NoSQL Databases
• Key- value stores
• Document databases
• Graph databases
• Column databases
Key Value Databases
Key value databases, also known as key value stores, are database types where data is
stored in a “key-value” format and optimized for reading and writing that data.
The data is fetched by a unique key or a number of unique keys to retrieve the associated
value with each key. The values can be simple data types like strings and numbers or
complex objects.
eg: Riak, redis server.
No SQL
Document Databases
• Documents are composed of field-and-value pairs and have the following structure:
• Documents can contain many key value pairs, key array pairs or even nested
documents
• It follow the JSON format.
• eg: MongoDB, Cosmos DB
Graph Databases
• Graph database are NoSQL database which use the graph data model comprised of
vertices and edges
• Vertices which is an entity such as person, place, object or relevant piece of data.
• Edges represent the relationship between two nodes
• eg: neo4j, infinite graph
Column Databases
• A columnar database is a database management system (DBMS) that stores data in
columns instead of rows.
• Very similar to relational databases, but still different.
• Most known because of Google Big Table representation.
• Mostly used in Data analytics.
• eg: BigTable, Cassandra, Hbase.
Row Databases
Column Databases
CAP Theorem
Suppose three properties of a distributed database system.
• Consistency:
 All the replicas have same values.
• Availability:
 Reads and writes always succeed.
• Partition- tolerance
 System will continue to work unless there is total network failure
 If few of the nodes fails then the system will work & answer the query.
CAP Theorem
• Eric Brewer’s CAP theorem says that if you want consistency, availability and partition
tolerance, you have to settle for two out of the three.
Distributed system
X=10
X=10
X=10
Then user can’t access the data until all the servers are in sync
Guaranteeing Consistency
X=10
X=10
X=10
Then user can’t access the data until all the servers are in sync
Guaranteeing Consistency
X=10
X=10
X=10
Guaranteeing Availability User will not get updated all the time.
Then user can’t access the data until all the servers are in sync
Guaranteeing Consistency
X=10
X=10
X=10
Guaranteeing Availability User will not get updated all the time.
Guaranteeing Partition Tolerance Consistency and availability both can’t be possible
Base Property of Transation
• Basically Available – failure will not halt the system
• Soft state – state of the system will change over the time
• Eventually consistency – system will become consistent over time
Real world Use case of NoSQL DB
• User profile store
 All Web applications require user profiles and the ability to log in. A global user profile store is an
example of where the key value characteristics of NoSQL come into play.
• E-Commerce
 E-commerce companies use NoSQL for store huge volume of data and large amount of request from user.
• Mobile Applications
 Since NoSQL database store the data in schema-less for the application developer can update the apps
without having to do major modification in database.
• Session storage
 NOSQL is suitable for storing such web application session information very is large in size.
NewSQL Databases
• NewSQL is a new approach to relational databases that want to combine
transactional ACID guarantees the goods RDBMS and the horizontal
scalability of NoSQL.
• They maintain ACID guarantees.
Advantages of NewSQL
• It introduces new implementation to traditional relational databases.
• It brings together the advantages of SQL and NoSQL.
• Fragmentation is supported
• Replication- copies of databases stored in remote site.
• Secondary indexes – accessing database records using a value other than a
primary key.
• Crash recovery- recovers to a consistent state.
No SQL

More Related Content

PPTX
Cassandra Learning
PPTX
Appache Cassandra
PPTX
PPTX
No sql databases
PPTX
Comparative study of modern databases
PPTX
NoSQL databases - An introduction
PPTX
Selecting best NoSQL
PDF
NoSQL databases
Cassandra Learning
Appache Cassandra
No sql databases
Comparative study of modern databases
NoSQL databases - An introduction
Selecting best NoSQL
NoSQL databases

What's hot (20)

PDF
Introduction to NoSQL
PPTX
NoSql Data Management
PPTX
Nosql databases
PPTX
Introduction to NoSQL
PPTX
Key-Value NoSQL Database
PPTX
NoSQL Consepts
PPTX
NOSQL Databases types and Uses
PPT
Student projects with open source CSQL
DOCX
Sql vs NO-SQL database differences explained
PPTX
Chapter1: NoSQL: It’s about making intelligent choices
PDF
NoSQL Now! NoSQL Architecture Patterns
PPTX
Column db dol
PPTX
NoSQL databases
PPT
No SQL - A Simple Intro
PDF
Impala use case @ edge
KEY
SortaSQL
PPTX
introduction to NOSQL Database
PPS
PPTX
Sql vs NoSQL
Introduction to NoSQL
NoSql Data Management
Nosql databases
Introduction to NoSQL
Key-Value NoSQL Database
NoSQL Consepts
NOSQL Databases types and Uses
Student projects with open source CSQL
Sql vs NO-SQL database differences explained
Chapter1: NoSQL: It’s about making intelligent choices
NoSQL Now! NoSQL Architecture Patterns
Column db dol
NoSQL databases
No SQL - A Simple Intro
Impala use case @ edge
SortaSQL
introduction to NOSQL Database
Sql vs NoSQL
Ad

Similar to No SQL (20)

PPTX
cours database pour etudiant NoSQL (1).pptx
PPTX
NoSQL.pptx
PPTX
NOSQL PRESENTATION ON INTRRODUCTION Intro.pptx
PPTX
UNIT I Introduction to NoSQL.pptx
PPTX
No SQL DATABASE Description about 4 no sql database.pptx
PPTX
UNIT I Introduction to NoSQL.pptx
PPTX
Introduction to Data Science NoSQL.pptx
PPTX
Relational and non relational database 7
PDF
NOsql Presentation.pdf
PPTX
Presentation on NOSQL and mongodb .pptx
PPTX
Lecture 1-Introduction of NoSQL in DBMS.pptx
PPTX
nosqldatabnjxjdjases-240121150542-d4ec9e23.pptx
PDF
Presentation On NoSQL Databases
PDF
Database Technologies
PPT
The No SQL Principles and Basic Application Of Casandra Model
PPTX
NoSQL and MongoDB
PPTX
Muskan Kumari (1276) Intro to NoSql.pptx. pptx
PPTX
Big data stores
PPTX
Module 2.2 Introduction to NoSQL Databases.pptx
PPTX
No SQL- The Future Of Data Storage
cours database pour etudiant NoSQL (1).pptx
NoSQL.pptx
NOSQL PRESENTATION ON INTRRODUCTION Intro.pptx
UNIT I Introduction to NoSQL.pptx
No SQL DATABASE Description about 4 no sql database.pptx
UNIT I Introduction to NoSQL.pptx
Introduction to Data Science NoSQL.pptx
Relational and non relational database 7
NOsql Presentation.pdf
Presentation on NOSQL and mongodb .pptx
Lecture 1-Introduction of NoSQL in DBMS.pptx
nosqldatabnjxjdjases-240121150542-d4ec9e23.pptx
Presentation On NoSQL Databases
Database Technologies
The No SQL Principles and Basic Application Of Casandra Model
NoSQL and MongoDB
Muskan Kumari (1276) Intro to NoSql.pptx. pptx
Big data stores
Module 2.2 Introduction to NoSQL Databases.pptx
No SQL- The Future Of Data Storage
Ad

Recently uploaded (20)

PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Geodesy 1.pptx...............................................
PDF
composite construction of structures.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Well-logging-methods_new................
PDF
737-MAX_SRG.pdf student reference guides
PDF
PPT on Performance Review to get promotions
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
additive manufacturing of ss316l using mig welding
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
bas. eng. economics group 4 presentation 1.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Geodesy 1.pptx...............................................
composite construction of structures.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Well-logging-methods_new................
737-MAX_SRG.pdf student reference guides
PPT on Performance Review to get promotions
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
additive manufacturing of ss316l using mig welding
Model Code of Practice - Construction Work - 21102022 .pdf
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Fundamentals of safety and accident prevention -final (1).pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Foundation to blockchain - A guide to Blockchain Tech
Safety Seminar civil to be ensured for safe working.
Operating System & Kernel Study Guide-1 - converted.pdf
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
bas. eng. economics group 4 presentation 1.pptx

No SQL

  • 2. Problems With RDBMS • Should know the entire schema upfront
  • 3. Problems With RDBMS • Should know the entire schema upfront • Every record have same properties [rigid structure]
  • 4. Problems With RDBMS • Should know the entire schema upfront • Every record have same properties [rigid structure] • Scalability is costly
  • 8. Problems With RDBMS • Should know the entire schema upfront • Every record have same properties [rigid structure] • Scalability is costly • Scaling relational database is hard
  • 10. Problems With RDBMS • Should know the entire schema upfront • Every record have same properties [rigid structure] • Scalability is costly • Scaling relational database is hard • Normalization
  • 11. Problems With RDBMS • Should know the entire schema upfront • Every record have same properties [rigid structure] • Scalability is costly • Scaling relational database is hard • Normalization • Altering schema on a running database is expensive
  • 12. Problems With RDBMS • Should know the entire schema upfront • Every record have same properties [rigid structure] • Scalability is costly • Scaling relational database is hard • Normalization • Altering schema on a running database is expensive • Horizontal scaling is a problem
  • 14. Problems with single server architecture • Load
  • 15. Problems with single server architecture • Failure – Single point of failure
  • 16. Problems with single server architecture • Maintenance – Downtime during manual maintenance
  • 18. Advantage of distributed database • Speed – Files are retrieved from the nearest location • If one site fails the system can still run.
  • 19. What is NoSQL ? Also known as • non-relational database • non SQL • not only SQL NoSQL are non-tabular databases and store data differently than relational tables.
  • 20. Student ID Name Course 123 john ML 234 Doe DL 456 Eric Python Student table
  • 22. Benefits of NoSQL • When compared to relational databases, NoSQL databases are more scalable and provide superior performance, and their data model addresses several issues that the relational model is not designed to address. • Schema-less • Data are replicated to multiple nodes(so, identical & fault tolerant) and can be partitioned:  no single point of failure  down nodes can easily be replaced • Cheap, easy to implement(open source) • Its all object oriented programming that is easy to use and flexible. • Running well on clusters – geographically distributed scale-out structure.
  • 23. Types of NoSQL Databases • Key- value stores • Document databases • Graph databases • Column databases
  • 24. Key Value Databases Key value databases, also known as key value stores, are database types where data is stored in a “key-value” format and optimized for reading and writing that data. The data is fetched by a unique key or a number of unique keys to retrieve the associated value with each key. The values can be simple data types like strings and numbers or complex objects. eg: Riak, redis server.
  • 26. Document Databases • Documents are composed of field-and-value pairs and have the following structure: • Documents can contain many key value pairs, key array pairs or even nested documents • It follow the JSON format. • eg: MongoDB, Cosmos DB
  • 27. Graph Databases • Graph database are NoSQL database which use the graph data model comprised of vertices and edges • Vertices which is an entity such as person, place, object or relevant piece of data. • Edges represent the relationship between two nodes • eg: neo4j, infinite graph
  • 28. Column Databases • A columnar database is a database management system (DBMS) that stores data in columns instead of rows. • Very similar to relational databases, but still different. • Most known because of Google Big Table representation. • Mostly used in Data analytics. • eg: BigTable, Cassandra, Hbase.
  • 31. CAP Theorem Suppose three properties of a distributed database system. • Consistency:  All the replicas have same values. • Availability:  Reads and writes always succeed. • Partition- tolerance  System will continue to work unless there is total network failure  If few of the nodes fails then the system will work & answer the query.
  • 32. CAP Theorem • Eric Brewer’s CAP theorem says that if you want consistency, availability and partition tolerance, you have to settle for two out of the three. Distributed system
  • 34. Then user can’t access the data until all the servers are in sync Guaranteeing Consistency X=10 X=10 X=10
  • 35. Then user can’t access the data until all the servers are in sync Guaranteeing Consistency X=10 X=10 X=10 Guaranteeing Availability User will not get updated all the time.
  • 36. Then user can’t access the data until all the servers are in sync Guaranteeing Consistency X=10 X=10 X=10 Guaranteeing Availability User will not get updated all the time. Guaranteeing Partition Tolerance Consistency and availability both can’t be possible
  • 37. Base Property of Transation • Basically Available – failure will not halt the system • Soft state – state of the system will change over the time • Eventually consistency – system will become consistent over time
  • 38. Real world Use case of NoSQL DB • User profile store  All Web applications require user profiles and the ability to log in. A global user profile store is an example of where the key value characteristics of NoSQL come into play. • E-Commerce  E-commerce companies use NoSQL for store huge volume of data and large amount of request from user. • Mobile Applications  Since NoSQL database store the data in schema-less for the application developer can update the apps without having to do major modification in database. • Session storage  NOSQL is suitable for storing such web application session information very is large in size.
  • 39. NewSQL Databases • NewSQL is a new approach to relational databases that want to combine transactional ACID guarantees the goods RDBMS and the horizontal scalability of NoSQL. • They maintain ACID guarantees.
  • 40. Advantages of NewSQL • It introduces new implementation to traditional relational databases. • It brings together the advantages of SQL and NoSQL. • Fragmentation is supported • Replication- copies of databases stored in remote site. • Secondary indexes – accessing database records using a value other than a primary key. • Crash recovery- recovers to a consistent state.