SlideShare a Scribd company logo
Presentation
on
NoSQL
“Towards the end of RDBMS ?”
By: M Haris Ghaffar
BsCs-E2-22-01
What is RDBMS
 RDBMS: the relational database
management system.
 Relation: a relation is a 2D table
which has the following features:
 Name
 Attributes
 Tuples
Name
2
Issues with RDBMS- Scalability
 Issues with scaling up when the dataset is
just too big e.g. Big Data.
 Not designed to be distributed.
 Looking at multi-node database solutions.
Known as ‘horizontal scaling’.
 Different approaches include:
 Master-slave
 Sharding
3
Scaling RDBMS
Master-Slave
 All writes are written to the master.
All reads are performed against
the replicated slave databases.
 Critical reads may be incorrect as
writes may not have been
propagated down.
 Large data sets can pose problems
as master needs to duplicate data
to slaves.
Sharding
 Scales well for both reads and
writes.
 Not transparent, application needs
to be partition-aware.
 Can no longer have relationships or
joins across partitions.
 Loss of referential integrity across
shards.
4
What is NoSQL
 Stands for Not Only SQL. Term was redefined by Eric Evans after Carlo
Strozzi.
 Class of non-relational data storage systems.
 Do not require a fixed table schema nor do they use the concept of joins.
 Relaxation for one or more of the ACID properties (Atomicity, Consistency,
Isolation, Durability) using CAP theorem.
5
Need of NoSQL
 Explosion of social media sites (Facebook, Twitter, Google etc.) with large
data needs. (Sharding is a problem)
 Rise of cloud-based solutions such as Amazon S3 (simple storage solution).
 Just as moving to dynamically-typed languages (Ruby/Groovy), a shift to
dynamically-typed data with frequent schema changes.
 Expansion of Open-source community.
 NoSQL solution is more acceptable to a client now than a year ago.
6
NoSQL Types
NoSQL database are classified into four types:
• Key Value pair based
• Column based
• Document based
• Graph based
7
Key Value Pair Based
• Designed for processing dictionary. Dictionaries contain a
collection of records having fields containing data.
• Records are stored and retrieved using a key that uniquely
identifies the record, and is used to quickly find the data
within the database.
Example: CouchDB, Oracle NoSQL Database, Riak etc.
We use it for storing session information, user profiles, preferences,
shopping cart data.
We would avoid it when we need to query data having relationships
between entities.
8
Column based
It store data as Column families containing rows that have
many columns associated with a row key. Each row can have
different columns.
Column families are groups of related data that is accessed
together.
Example: Cassandra, HBase, Hypertable, and Amazon
DynamoDB.
We use it for content management systems, blogging platforms, log aggregation.
We would avoid it for systems that are in early development, changing query patterns.
9
Document Based
The database stores and retrieves documents. It stores documents in
the value part of the key-value store.
Self- describing, hierarchical tree data structures consisting of maps,
collections, and scalar values.
Example: Lotus Notes, MongoDB, Couch DB, Orient DB, Raven DB.
We use it for content management systems, blogging platforms, web analytics, real-time analytics,
e- commerce applications.
We would avoid it for systems that need complex transactions spanning multiple operations or
queries against varying aggregate structures.
10
Graph Based
Store entities and relationships between these entities as nodes
and edges of a graph respectively. Entities have properties.
Traversing the relationships is very fast as relationship between
nodes is not calculated at query time but is actually persisted
as a relationship.
Example: Neo4J, Infinite Graph, OrientDB, FlockDB.
It is well suited for connected data, such as social networks,
spatial data, routing information for goods and supply.
11
CAP Theorem
 According to Eric Brewer a distributed system has 3 properties :
 Consistency
 Availability
 Partitions
 We can have at most two of these three properties for any shared-data system
 To scale out, we have to partition. It leaves a choice between consistency and
availability. ( In almost all cases, we would choose availability over consistency)
 Everyone who builds big applications builds them on CAP : Google, Yahoo,
Facebook, Amazon, eBay, etc.
12
Advantages of NoSQL
 Cheap and easy to implement (open source)
 Data are replicated to multiple nodes (therefore identical and fault-
tolerant) and can be partitioned
 When data is written, the latest version is on at least one node and then
replicated to other nodes
 No single point of failure
 Easy to distribute
 Don't require a schema
13
What is not provided by NoSQL
 Joins
 Group by
 ACID transactions
 SQL
 Integration with applications that are based on SQL
14
Where to use NoSQL
 NoSQL Data storage systems makes sense for applications that process very large
semi-structured data –like Log Analysis, Social Networking Feeds, Time-based
data.
 To improve programmer productivity by using a database that better matches an
application's needs.
 To improve data access performance via some combination of handling larger data
volumes, reducing latency, and improving throughput.
15
Conclusion
 All the choices provided by the rise of NoSQL databases does not mean the demise
of RDBMS databases as Relational databases are a powerful tool.
 We are entering an era of Polyglot persistence, a technique that uses different data
storage technologies to handle varying data storage needs. It can apply across an
enterprise or within an individual application.
16
17
Any Queries?
Thank
You
Thank
You

More Related Content

Similar to Nosql Presentation.pdf for DBMS understanding

DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptx
DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptxDATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptx
DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptxLaxmi Pandya
 
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
 
Non relational databases-no sql
Non relational databases-no sqlNon relational databases-no sql
Non relational databases-no sqlRam kumar
 
Comparative study of no sql document, column store databases and evaluation o...
Comparative study of no sql document, column store databases and evaluation o...Comparative study of no sql document, column store databases and evaluation o...
Comparative study of no sql document, column store databases and evaluation o...ijdms
 
Vskills Apache Cassandra sample material
Vskills Apache Cassandra sample materialVskills Apache Cassandra sample material
Vskills Apache Cassandra sample materialVskills
 
3.Implementation with NOSQL databases Document Databases (Mongodb).pptx
3.Implementation with NOSQL databases Document Databases (Mongodb).pptx3.Implementation with NOSQL databases Document Databases (Mongodb).pptx
3.Implementation with NOSQL databases Document Databases (Mongodb).pptxRushikeshChikane2
 
Data management in cloud study of existing systems and future opportunities
Data management in cloud study of existing systems and future opportunitiesData management in cloud study of existing systems and future opportunities
Data management in cloud study of existing systems and future opportunitiesEditor Jacotech
 

Similar to Nosql Presentation.pdf for DBMS understanding (20)

DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptx
DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptxDATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptx
DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptx
 
All About Database v1.1
All About Database  v1.1All About Database  v1.1
All About Database v1.1
 
Artigo no sql x relational
Artigo no sql x relationalArtigo no sql x relational
Artigo no sql x relational
 
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
 
the rising no sql technology
the rising no sql technologythe rising no sql technology
the rising no sql technology
 
WEB_DATABASE_chapter_4.pptx
WEB_DATABASE_chapter_4.pptxWEB_DATABASE_chapter_4.pptx
WEB_DATABASE_chapter_4.pptx
 
Datastores
DatastoresDatastores
Datastores
 
Non relational databases-no sql
Non relational databases-no sqlNon relational databases-no sql
Non relational databases-no sql
 
Comparative study of no sql document, column store databases and evaluation o...
Comparative study of no sql document, column store databases and evaluation o...Comparative study of no sql document, column store databases and evaluation o...
Comparative study of no sql document, column store databases and evaluation o...
 
Datastores
DatastoresDatastores
Datastores
 
NoSQL
NoSQLNoSQL
NoSQL
 
Nosql
NosqlNosql
Nosql
 
nosql.pptx
nosql.pptxnosql.pptx
nosql.pptx
 
Unit-10.pptx
Unit-10.pptxUnit-10.pptx
Unit-10.pptx
 
Vskills Apache Cassandra sample material
Vskills Apache Cassandra sample materialVskills Apache Cassandra sample material
Vskills Apache Cassandra sample material
 
3.Implementation with NOSQL databases Document Databases (Mongodb).pptx
3.Implementation with NOSQL databases Document Databases (Mongodb).pptx3.Implementation with NOSQL databases Document Databases (Mongodb).pptx
3.Implementation with NOSQL databases Document Databases (Mongodb).pptx
 
Data management in cloud study of existing systems and future opportunities
Data management in cloud study of existing systems and future opportunitiesData management in cloud study of existing systems and future opportunities
Data management in cloud study of existing systems and future opportunities
 
Data Storage Management
Data Storage ManagementData Storage Management
Data Storage Management
 
Unit 3 MongDB
Unit 3 MongDBUnit 3 MongDB
Unit 3 MongDB
 
No sql
No sqlNo sql
No sql
 

Recently uploaded

Introduction to Automotive Bootloader | Programming Sequence
Introduction to Automotive Bootloader | Programming SequenceIntroduction to Automotive Bootloader | Programming Sequence
Introduction to Automotive Bootloader | Programming SequenceKapil Thakar
 
What Should You Do If Your Jaguar XF Bluetooth Isn't Working
What Should You Do If Your Jaguar XF Bluetooth Isn't WorkingWhat Should You Do If Your Jaguar XF Bluetooth Isn't Working
What Should You Do If Your Jaguar XF Bluetooth Isn't WorkingAuto Assets
 
Essential Maintenance Tips For Commercial Vans.
Essential Maintenance Tips For Commercial Vans.Essential Maintenance Tips For Commercial Vans.
Essential Maintenance Tips For Commercial Vans.commercialvansolutions
 
Basic of Firmware & Embedded Software Programming in C
Basic of Firmware & Embedded Software Programming in CBasic of Firmware & Embedded Software Programming in C
Basic of Firmware & Embedded Software Programming in CKapil Thakar
 
CBC used in Indian Railways for train coupling.pptx
CBC used in Indian Railways for train coupling.pptxCBC used in Indian Railways for train coupling.pptx
CBC used in Indian Railways for train coupling.pptxGaurav Singh
 
Timer Handling in UDS | S3 Server Timer | P2 and P2 Start Timer
Timer Handling in UDS | S3 Server Timer | P2 and P2 Start TimerTimer Handling in UDS | S3 Server Timer | P2 and P2 Start Timer
Timer Handling in UDS | S3 Server Timer | P2 and P2 Start TimerKapil Thakar
 
What Should BMW Owners Know About Steptronic Transmission Problems
What Should BMW Owners Know About Steptronic Transmission ProblemsWhat Should BMW Owners Know About Steptronic Transmission Problems
What Should BMW Owners Know About Steptronic Transmission ProblemsSchearer's Sales & Service Inc
 
Automotive Bootloader Complete Guide with UDS Frame Format
Automotive Bootloader Complete Guide with UDS Frame FormatAutomotive Bootloader Complete Guide with UDS Frame Format
Automotive Bootloader Complete Guide with UDS Frame FormatKapil Thakar
 
Advanced Technology for Auto Part Industry Inventory Solutions
Advanced Technology for Auto Part Industry Inventory SolutionsAdvanced Technology for Auto Part Industry Inventory Solutions
Advanced Technology for Auto Part Industry Inventory Solutionscontactcaysonandres
 
Introduction to UDS over CAN | UDS Service
Introduction to UDS over CAN | UDS ServiceIntroduction to UDS over CAN | UDS Service
Introduction to UDS over CAN | UDS ServiceKapil Thakar
 
Car Seat Covers and Seat Protection Guide
Car Seat Covers and Seat Protection GuideCar Seat Covers and Seat Protection Guide
Car Seat Covers and Seat Protection GuideAskXX.com
 
Why Won't Your Audi A3 Shift Into Reverse Gear Let's Investigate
Why Won't Your Audi A3 Shift Into Reverse Gear Let's InvestigateWhy Won't Your Audi A3 Shift Into Reverse Gear Let's Investigate
Why Won't Your Audi A3 Shift Into Reverse Gear Let's InvestigateAutowerks
 
CAMIONES TOYOTA N04C- Engine y HINO 300.
CAMIONES TOYOTA N04C- Engine y HINO 300.CAMIONES TOYOTA N04C- Engine y HINO 300.
CAMIONES TOYOTA N04C- Engine y HINO 300.JavierAlejandroCordo1
 
technical report on EV. EVs can offer benefitssuch as lower operating costs a...
technical report on EV. EVs can offer benefitssuch as lower operating costs a...technical report on EV. EVs can offer benefitssuch as lower operating costs a...
technical report on EV. EVs can offer benefitssuch as lower operating costs a...Bijay Sharma
 
5s-5S 5S 5S 5S 5S 5S 5S PRESENTATION .ppt
5s-5S 5S 5S 5S 5S 5S 5S PRESENTATION  .ppt5s-5S 5S 5S 5S 5S 5S 5S PRESENTATION  .ppt
5s-5S 5S 5S 5S 5S 5S 5S PRESENTATION .ppthiren65650
 
-VDA-Special-Characteristics Special characteristics.pdf
-VDA-Special-Characteristics Special characteristics.pdf-VDA-Special-Characteristics Special characteristics.pdf
-VDA-Special-Characteristics Special characteristics.pdfBorja ARRIZABALAGA URIARTE
 
Quicker and better: South Korea’s new high-speed train 'EMU-320'
Quicker and better: South Korea’s new high-speed train 'EMU-320'Quicker and better: South Korea’s new high-speed train 'EMU-320'
Quicker and better: South Korea’s new high-speed train 'EMU-320'Hyundai Motor Group
 

Recently uploaded (18)

Introduction to Automotive Bootloader | Programming Sequence
Introduction to Automotive Bootloader | Programming SequenceIntroduction to Automotive Bootloader | Programming Sequence
Introduction to Automotive Bootloader | Programming Sequence
 
What Should You Do If Your Jaguar XF Bluetooth Isn't Working
What Should You Do If Your Jaguar XF Bluetooth Isn't WorkingWhat Should You Do If Your Jaguar XF Bluetooth Isn't Working
What Should You Do If Your Jaguar XF Bluetooth Isn't Working
 
Essential Maintenance Tips For Commercial Vans.
Essential Maintenance Tips For Commercial Vans.Essential Maintenance Tips For Commercial Vans.
Essential Maintenance Tips For Commercial Vans.
 
Basic of Firmware & Embedded Software Programming in C
Basic of Firmware & Embedded Software Programming in CBasic of Firmware & Embedded Software Programming in C
Basic of Firmware & Embedded Software Programming in C
 
CBC used in Indian Railways for train coupling.pptx
CBC used in Indian Railways for train coupling.pptxCBC used in Indian Railways for train coupling.pptx
CBC used in Indian Railways for train coupling.pptx
 
Timer Handling in UDS | S3 Server Timer | P2 and P2 Start Timer
Timer Handling in UDS | S3 Server Timer | P2 and P2 Start TimerTimer Handling in UDS | S3 Server Timer | P2 and P2 Start Timer
Timer Handling in UDS | S3 Server Timer | P2 and P2 Start Timer
 
What Should BMW Owners Know About Steptronic Transmission Problems
What Should BMW Owners Know About Steptronic Transmission ProblemsWhat Should BMW Owners Know About Steptronic Transmission Problems
What Should BMW Owners Know About Steptronic Transmission Problems
 
Automotive Bootloader Complete Guide with UDS Frame Format
Automotive Bootloader Complete Guide with UDS Frame FormatAutomotive Bootloader Complete Guide with UDS Frame Format
Automotive Bootloader Complete Guide with UDS Frame Format
 
Advanced Technology for Auto Part Industry Inventory Solutions
Advanced Technology for Auto Part Industry Inventory SolutionsAdvanced Technology for Auto Part Industry Inventory Solutions
Advanced Technology for Auto Part Industry Inventory Solutions
 
Introduction to UDS over CAN | UDS Service
Introduction to UDS over CAN | UDS ServiceIntroduction to UDS over CAN | UDS Service
Introduction to UDS over CAN | UDS Service
 
Car Seat Covers and Seat Protection Guide
Car Seat Covers and Seat Protection GuideCar Seat Covers and Seat Protection Guide
Car Seat Covers and Seat Protection Guide
 
Why Won't Your Audi A3 Shift Into Reverse Gear Let's Investigate
Why Won't Your Audi A3 Shift Into Reverse Gear Let's InvestigateWhy Won't Your Audi A3 Shift Into Reverse Gear Let's Investigate
Why Won't Your Audi A3 Shift Into Reverse Gear Let's Investigate
 
CAMIONES TOYOTA N04C- Engine y HINO 300.
CAMIONES TOYOTA N04C- Engine y HINO 300.CAMIONES TOYOTA N04C- Engine y HINO 300.
CAMIONES TOYOTA N04C- Engine y HINO 300.
 
technical report on EV. EVs can offer benefitssuch as lower operating costs a...
technical report on EV. EVs can offer benefitssuch as lower operating costs a...technical report on EV. EVs can offer benefitssuch as lower operating costs a...
technical report on EV. EVs can offer benefitssuch as lower operating costs a...
 
5s-5S 5S 5S 5S 5S 5S 5S PRESENTATION .ppt
5s-5S 5S 5S 5S 5S 5S 5S PRESENTATION  .ppt5s-5S 5S 5S 5S 5S 5S 5S PRESENTATION  .ppt
5s-5S 5S 5S 5S 5S 5S 5S PRESENTATION .ppt
 
Tips for Securing Manufacturing Opertaions.pdf
Tips for Securing Manufacturing Opertaions.pdfTips for Securing Manufacturing Opertaions.pdf
Tips for Securing Manufacturing Opertaions.pdf
 
-VDA-Special-Characteristics Special characteristics.pdf
-VDA-Special-Characteristics Special characteristics.pdf-VDA-Special-Characteristics Special characteristics.pdf
-VDA-Special-Characteristics Special characteristics.pdf
 
Quicker and better: South Korea’s new high-speed train 'EMU-320'
Quicker and better: South Korea’s new high-speed train 'EMU-320'Quicker and better: South Korea’s new high-speed train 'EMU-320'
Quicker and better: South Korea’s new high-speed train 'EMU-320'
 

Nosql Presentation.pdf for DBMS understanding

  • 1. Presentation on NoSQL “Towards the end of RDBMS ?” By: M Haris Ghaffar BsCs-E2-22-01
  • 2. What is RDBMS  RDBMS: the relational database management system.  Relation: a relation is a 2D table which has the following features:  Name  Attributes  Tuples Name 2
  • 3. Issues with RDBMS- Scalability  Issues with scaling up when the dataset is just too big e.g. Big Data.  Not designed to be distributed.  Looking at multi-node database solutions. Known as ‘horizontal scaling’.  Different approaches include:  Master-slave  Sharding 3
  • 4. Scaling RDBMS Master-Slave  All writes are written to the master. All reads are performed against the replicated slave databases.  Critical reads may be incorrect as writes may not have been propagated down.  Large data sets can pose problems as master needs to duplicate data to slaves. Sharding  Scales well for both reads and writes.  Not transparent, application needs to be partition-aware.  Can no longer have relationships or joins across partitions.  Loss of referential integrity across shards. 4
  • 5. What is NoSQL  Stands for Not Only SQL. Term was redefined by Eric Evans after Carlo Strozzi.  Class of non-relational data storage systems.  Do not require a fixed table schema nor do they use the concept of joins.  Relaxation for one or more of the ACID properties (Atomicity, Consistency, Isolation, Durability) using CAP theorem. 5
  • 6. Need of NoSQL  Explosion of social media sites (Facebook, Twitter, Google etc.) with large data needs. (Sharding is a problem)  Rise of cloud-based solutions such as Amazon S3 (simple storage solution).  Just as moving to dynamically-typed languages (Ruby/Groovy), a shift to dynamically-typed data with frequent schema changes.  Expansion of Open-source community.  NoSQL solution is more acceptable to a client now than a year ago. 6
  • 7. NoSQL Types NoSQL database are classified into four types: • Key Value pair based • Column based • Document based • Graph based 7
  • 8. Key Value Pair Based • Designed for processing dictionary. Dictionaries contain a collection of records having fields containing data. • Records are stored and retrieved using a key that uniquely identifies the record, and is used to quickly find the data within the database. Example: CouchDB, Oracle NoSQL Database, Riak etc. We use it for storing session information, user profiles, preferences, shopping cart data. We would avoid it when we need to query data having relationships between entities. 8
  • 9. Column based It store data as Column families containing rows that have many columns associated with a row key. Each row can have different columns. Column families are groups of related data that is accessed together. Example: Cassandra, HBase, Hypertable, and Amazon DynamoDB. We use it for content management systems, blogging platforms, log aggregation. We would avoid it for systems that are in early development, changing query patterns. 9
  • 10. Document Based The database stores and retrieves documents. It stores documents in the value part of the key-value store. Self- describing, hierarchical tree data structures consisting of maps, collections, and scalar values. Example: Lotus Notes, MongoDB, Couch DB, Orient DB, Raven DB. We use it for content management systems, blogging platforms, web analytics, real-time analytics, e- commerce applications. We would avoid it for systems that need complex transactions spanning multiple operations or queries against varying aggregate structures. 10
  • 11. Graph Based Store entities and relationships between these entities as nodes and edges of a graph respectively. Entities have properties. Traversing the relationships is very fast as relationship between nodes is not calculated at query time but is actually persisted as a relationship. Example: Neo4J, Infinite Graph, OrientDB, FlockDB. It is well suited for connected data, such as social networks, spatial data, routing information for goods and supply. 11
  • 12. CAP Theorem  According to Eric Brewer a distributed system has 3 properties :  Consistency  Availability  Partitions  We can have at most two of these three properties for any shared-data system  To scale out, we have to partition. It leaves a choice between consistency and availability. ( In almost all cases, we would choose availability over consistency)  Everyone who builds big applications builds them on CAP : Google, Yahoo, Facebook, Amazon, eBay, etc. 12
  • 13. Advantages of NoSQL  Cheap and easy to implement (open source)  Data are replicated to multiple nodes (therefore identical and fault- tolerant) and can be partitioned  When data is written, the latest version is on at least one node and then replicated to other nodes  No single point of failure  Easy to distribute  Don't require a schema 13
  • 14. What is not provided by NoSQL  Joins  Group by  ACID transactions  SQL  Integration with applications that are based on SQL 14
  • 15. Where to use NoSQL  NoSQL Data storage systems makes sense for applications that process very large semi-structured data –like Log Analysis, Social Networking Feeds, Time-based data.  To improve programmer productivity by using a database that better matches an application's needs.  To improve data access performance via some combination of handling larger data volumes, reducing latency, and improving throughput. 15
  • 16. Conclusion  All the choices provided by the rise of NoSQL databases does not mean the demise of RDBMS databases as Relational databases are a powerful tool.  We are entering an era of Polyglot persistence, a technique that uses different data storage technologies to handle varying data storage needs. It can apply across an enterprise or within an individual application. 16