SlideShare une entreprise Scribd logo
1  sur  41
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
Problems With RDBMS
• Should know the entire schema upfront
• Every record have same properties [rigid structure]
• Scalability is costly
• Scaling relational database is hard
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.
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

Contenu connexe

Tendances

NoSql Data Management
NoSql Data ManagementNoSql Data Management
NoSql Data Managementsameerfaizan
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and UsesSuvradeep Rudra
 
Student projects with open source CSQL
Student projects with open source CSQLStudent projects with open source CSQL
Student projects with open source CSQLPrabakaran Thirumalai
 
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 explainedSatya Pal
 
Chapter1: NoSQL: It’s about making intelligent choices
Chapter1: NoSQL: It’s about making intelligent choicesChapter1: NoSQL: It’s about making intelligent choices
Chapter1: NoSQL: It’s about making intelligent choicesMaynooth University
 
NoSQL Now! NoSQL Architecture Patterns
NoSQL Now! NoSQL Architecture PatternsNoSQL Now! NoSQL Architecture Patterns
NoSQL Now! NoSQL Architecture PatternsDATAVERSITY
 
Column db dol
Column db dolColumn db dol
Column db dolpoojabi
 
No SQL - A Simple Intro
No SQL - A Simple IntroNo SQL - A Simple Intro
No SQL - A Simple IntroKarthi Keyan
 
Impala use case @ edge
Impala use case @ edgeImpala use case @ edge
Impala use case @ edgeRam Kedem
 
introduction to NOSQL Database
introduction to NOSQL Databaseintroduction to NOSQL Database
introduction to NOSQL Databasenehabsairam
 
Sql vs NoSQL
Sql vs NoSQLSql vs NoSQL
Sql vs NoSQLRTigger
 

Tendances (20)

Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
NoSql Data Management
NoSql Data ManagementNoSql Data Management
NoSql Data Management
 
Nosql databases
Nosql databasesNosql databases
Nosql databases
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
Key-Value NoSQL Database
Key-Value NoSQL DatabaseKey-Value NoSQL Database
Key-Value NoSQL Database
 
NoSQL Consepts
NoSQL ConseptsNoSQL Consepts
NoSQL Consepts
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and Uses
 
Student projects with open source CSQL
Student projects with open source CSQLStudent projects with open source CSQL
Student projects with open source CSQL
 
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
 
NoSql
NoSqlNoSql
NoSql
 
Chapter1: NoSQL: It’s about making intelligent choices
Chapter1: NoSQL: It’s about making intelligent choicesChapter1: NoSQL: It’s about making intelligent choices
Chapter1: NoSQL: It’s about making intelligent choices
 
NoSQL Now! NoSQL Architecture Patterns
NoSQL Now! NoSQL Architecture PatternsNoSQL Now! NoSQL Architecture Patterns
NoSQL Now! NoSQL Architecture Patterns
 
Column db dol
Column db dolColumn db dol
Column db dol
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
 
No SQL - A Simple Intro
No SQL - A Simple IntroNo SQL - A Simple Intro
No SQL - A Simple Intro
 
Impala use case @ edge
Impala use case @ edgeImpala use case @ edge
Impala use case @ edge
 
SortaSQL
SortaSQLSortaSQL
SortaSQL
 
introduction to NOSQL Database
introduction to NOSQL Databaseintroduction to NOSQL Database
introduction to NOSQL Database
 
SQL & NoSQL
SQL & NoSQLSQL & NoSQL
SQL & NoSQL
 
Sql vs NoSQL
Sql vs NoSQLSql vs NoSQL
Sql vs NoSQL
 

Similaire à No SQL

UNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxUNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxRahul Borate
 
UNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxUNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxRahul Borate
 
Relational and non relational database 7
Relational and non relational database 7Relational and non relational database 7
Relational and non relational database 7abdulrahmanhelan
 
Presentation On NoSQL Databases
Presentation On NoSQL DatabasesPresentation On NoSQL Databases
Presentation On NoSQL DatabasesAbiral Gautam
 
The No SQL Principles and Basic Application Of Casandra Model
The No SQL Principles and Basic Application Of Casandra ModelThe No SQL Principles and Basic Application Of Casandra Model
The No SQL Principles and Basic Application Of Casandra ModelRishikese MR
 
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 StorageBethmi Gunasekara
 
NoSQLDatabases
NoSQLDatabasesNoSQLDatabases
NoSQLDatabasesAdi Challa
 
Solr cloud the 'search first' nosql database extended deep dive
Solr cloud the 'search first' nosql database   extended deep diveSolr cloud the 'search first' nosql database   extended deep dive
Solr cloud the 'search first' nosql database extended deep divelucenerevolution
 
Ccs334 Big data analytics UNIT II ppt notes
Ccs334   Big data analytics UNIT II ppt notesCcs334   Big data analytics UNIT II ppt notes
Ccs334 Big data analytics UNIT II ppt notesVasanthB27
 
Big Data Platforms: An Overview
Big Data Platforms: An OverviewBig Data Platforms: An Overview
Big Data Platforms: An OverviewC. Scyphers
 

Similaire à No SQL (20)

NoSQL.pptx
NoSQL.pptxNoSQL.pptx
NoSQL.pptx
 
UNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxUNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptx
 
UNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxUNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptx
 
Relational and non relational database 7
Relational and non relational database 7Relational and non relational database 7
Relational and non relational database 7
 
NOsql Presentation.pdf
NOsql Presentation.pdfNOsql Presentation.pdf
NOsql Presentation.pdf
 
Presentation On NoSQL Databases
Presentation On NoSQL DatabasesPresentation On NoSQL Databases
Presentation On NoSQL Databases
 
Database Technologies
Database TechnologiesDatabase Technologies
Database Technologies
 
The No SQL Principles and Basic Application Of Casandra Model
The No SQL Principles and Basic Application Of Casandra ModelThe No SQL Principles and Basic Application Of Casandra Model
The No SQL Principles and Basic Application Of Casandra Model
 
NoSQL and MongoDB
NoSQL and MongoDBNoSQL and MongoDB
NoSQL and MongoDB
 
Big data stores
Big data  storesBig data  stores
Big data stores
 
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
 
NoSQLDatabases
NoSQLDatabasesNoSQLDatabases
NoSQLDatabases
 
NoSql Brownbag
NoSql BrownbagNoSql Brownbag
NoSql Brownbag
 
Modern database
Modern databaseModern database
Modern database
 
NOSQL vs SQL
NOSQL vs SQLNOSQL vs SQL
NOSQL vs SQL
 
Solr cloud the 'search first' nosql database extended deep dive
Solr cloud the 'search first' nosql database   extended deep diveSolr cloud the 'search first' nosql database   extended deep dive
Solr cloud the 'search first' nosql database extended deep dive
 
Nosql data models
Nosql data modelsNosql data models
Nosql data models
 
Ccs334 Big data analytics UNIT II ppt notes
Ccs334   Big data analytics UNIT II ppt notesCcs334   Big data analytics UNIT II ppt notes
Ccs334 Big data analytics UNIT II ppt notes
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
Big Data Platforms: An Overview
Big Data Platforms: An OverviewBig Data Platforms: An Overview
Big Data Platforms: An Overview
 

Dernier

PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 

Dernier (20)

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 

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
  • 5.
  • 6.
  • 7.
  • 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
  • 9.
  • 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.
  • 25.
  • 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.