SlideShare a Scribd company logo
Introduction to NoSQL Database
Mohammad Al Ghanem
Senior Software Engineer
Outline
 Introduction To NoSQL.
 Web Application Data growth.
 Characteristic of NoSQL.
 ACID.
 BASE.
 CAP Theory.
 Major NoSQL Types.
 Developers Viewpoint.
 Look at Queries syntax.
 NoSQL Shells.
 Summary.
 Questions.
Introduction to NoSQL
 Stands for Not Only SQL.
 The idea of NoSQL founded in 1998 with term
lightweightSchemaLess by Carlo Strozzi.
 Open source database.
 NoSQL will be the future database.
 Very compatible with distributed systems.
 Lower cost.
 High performance database.
 Founded to handle huge data space.
 Used by Facebook , Google , Wikipedia …
Increasing Web Application Data.
Characteristic of NoSQL
 Large data volumes.
 Scalable replication and distribution (Horizontal scaling).
 Queries need to return answers quickly.
 Asynchronous Inserts & Updates.
 Schema-less.
 Designed to support Caching without 3-rd party tools.
 ACID transaction properties are not needed.
 BASE here.
 CAP Theorem.
 No Joins statement.
 No complicated Relationships
 Less administration time(less cost).
ACID
 Atomic – All transaction completes (commit) or none
of it completes.
 Consistent – Consistency is defined in terms of
constraints.
 Isolated – The transaction will behave as if it is the
only operation being performed upon the database
 Durable – Upon completion of the transaction, the
operation will not be reversed.
BASE
 Basically Available.
 Soft state(expiration of information).
 Eventually Consistent.
 Weak consistency.
 Availability first.
 Simpler and faster.
CAP Theory
Major NoSQL Types
 Key-Value Store.
 Hashing.
 Basic get/put/delete.
 Crazy fast because there is key to get set of values.
 Document Store.
 JSON,XML … document structured.
 No Join.(handle it in your code).
 Column Database.
 Each storage block contains data from only one column.
 Reduce access and scanning time.
 Still use tables without joins statements.
 Better for data analytics.
Developers Viewpoint !
SQL is better ?
 Natural reaction.
 Everyone's experience.
 Fear of change.
NoSQL Will :
 Simplify your data model.
 Easy to install.
 your bugs will be fewer and easier to find.
 Lower administration / less DBAs.
 performance is going to be awesome.
 Scale will be much simpler.
 Rapid Development.
 Large binary objects.
 Graphs/relationships.
Look at Queries syntax
 db.inventory.find( { type: "snacks" } );
 db.inventory.find( { type: 'food', price: { $lt: 9.95 } } );
 db.inventory.find( { producer: { company: 'ABC123',
address: '123 Street' } } );
 db.inventory.find( { memos: { $elemMatch: { memo : 'on
time', by: 'shipping' } } } );
 db.inventory.insert( { _id: 10, type: "misc", item: "card",
qty: 15 } );
 db.users.remove( { status: "D" } )
 db.users.insert( { name: "sue", age: 26, status: "A" } )
 db.users.update( { age: { $gt: 18 } }, { $set: { status: "A" }
}, { multi: true } )
 db.inventory.save( { type: "book", item: "notebook", qty:
40 } )
What's about functions ?
var myCursor = db.inventory.find( { type: 'food' } );
myCursor.forEach(printjson);
var myCursor = db.inventory.find( { type: 'food' } );
var documentArray = myCursor.toArray();
var myDocument = documentArray[3];
Query Analysis
db.inventory.find( { type: 'food' } ).explain()
Output Here
Summary
NoSQL :
 Handle huge data.
 High availability with small cost.
 More data redundancy.
 High performance.
 Less administration time.
 Less standards.
SQL :
 Good to solve ACID problems.
 Expensive.
 Less data redundancy.
 Increasing availability mean increasing cost.
 More standards.
 More administration.
Pick the right tool for your job !
Thanks for your attention

Questions ?

More Related Content

What's hot (20)

PPTX
CData Data Today: A Developer's Dilemma
Jerod Johnson
 
PDF
MongoDB - An Introduction
sethfloydjr
 
PPTX
Improve your SQL workload with observability
OVHcloud
 
PPTX
introduction to NOSQL Database
nehabsairam
 
PPTX
Cassandra-vs-MongoDB
Jainul Musani
 
PPTX
How to Design a Modern Data Warehouse in BigQuery
Dan Sullivan, Ph.D.
 
PPT
NoSQL Slideshare Presentation
Ericsson Labs
 
PPTX
Azure DocumentDB 101
Ike Ellis
 
PPTX
Why no sql ? Why Couchbase ?
Ahmed Rashwan
 
PPTX
Google Cloud Spanner Preview
DoiT International
 
PDF
Multi model-databases
ArangoDB Database
 
PDF
Overhauling a database engine in 2 months
Max Neunhöffer
 
PPT
NoSql Databases
Nimat Khattak
 
PPTX
MongoDB-SESSION02
Jainul Musani
 
PPTX
Introduction to NoSQL
PolarSeven Pty Ltd
 
PPTX
NoSQL for SQL Users
IBM Cloud Data Services
 
PDF
FOXX - a Javascript application framework on top of ArangoDB
ArangoDB Database
 
PDF
Data platform architecture principles - ieee infrastructure 2020
Julien Le Dem
 
PDF
Multi-model databases and node.js
Max Neunhöffer
 
PDF
NoSQL Databases
BADR
 
CData Data Today: A Developer's Dilemma
Jerod Johnson
 
MongoDB - An Introduction
sethfloydjr
 
Improve your SQL workload with observability
OVHcloud
 
introduction to NOSQL Database
nehabsairam
 
Cassandra-vs-MongoDB
Jainul Musani
 
How to Design a Modern Data Warehouse in BigQuery
Dan Sullivan, Ph.D.
 
NoSQL Slideshare Presentation
Ericsson Labs
 
Azure DocumentDB 101
Ike Ellis
 
Why no sql ? Why Couchbase ?
Ahmed Rashwan
 
Google Cloud Spanner Preview
DoiT International
 
Multi model-databases
ArangoDB Database
 
Overhauling a database engine in 2 months
Max Neunhöffer
 
NoSql Databases
Nimat Khattak
 
MongoDB-SESSION02
Jainul Musani
 
Introduction to NoSQL
PolarSeven Pty Ltd
 
NoSQL for SQL Users
IBM Cloud Data Services
 
FOXX - a Javascript application framework on top of ArangoDB
ArangoDB Database
 
Data platform architecture principles - ieee infrastructure 2020
Julien Le Dem
 
Multi-model databases and node.js
Max Neunhöffer
 
NoSQL Databases
BADR
 

Viewers also liked (6)

PDF
Overview of no sql
Sean Murphy
 
PPTX
Characteristics of no sql databases
Dipti Borkar
 
PDF
NoSQL Database: Classification, Characteristics and Comparison
Mayuree Srikulwong
 
PDF
Database Review and Challenges (2016)
Mayuree Srikulwong
 
PDF
NoSQL Databases
Eduard Tudenhoefner
 
PPTX
Introduction to NoSQL Databases
Derek Stainer
 
Overview of no sql
Sean Murphy
 
Characteristics of no sql databases
Dipti Borkar
 
NoSQL Database: Classification, Characteristics and Comparison
Mayuree Srikulwong
 
Database Review and Challenges (2016)
Mayuree Srikulwong
 
NoSQL Databases
Eduard Tudenhoefner
 
Introduction to NoSQL Databases
Derek Stainer
 
Ad

Similar to Introduction to NoSQL Database (20)

PDF
If NoSQL is your answer, you are probably asking the wrong question.
Lukas Smith
 
PPTX
Polyglot Database - Linuxcon North America 2016
Dave Stokes
 
PDF
SQL or NoSQL, is this the question? - George Grammatikos
George Grammatikos
 
PPT
Indic threads pune12-nosql now and path ahead
IndicThreads
 
PDF
Scaling the Content Repository with Elasticsearch
Nuxeo
 
PPTX
Moving from SQL Server to MongoDB
Nick Court
 
PDF
SQL vs NoSQL deep dive
Ahmed Shaaban
 
PPTX
NoSQL Basics and MongDB
Shamima Yeasmin Mukta
 
PPTX
NoSQL
kirandanduprolu
 
PDF
NoSQL - No Security?
Gavin Holt
 
PDF
NoSQL Databases Introduction - UTN 2013
Facundo Farias
 
PPT
Enterprise NoSQL: Silver Bullet or Poison Pill
Billy Newport
 
PPTX
NoSQL Endgame DevoxxUA Conference 2020
Thodoris Bais
 
PPT
vOfficeware Brown Bag - NOSQL
apexdodge
 
PPT
Mongo Bb - NoSQL tutorial
Mohan Rathour
 
PPTX
NOSQL
akbarashaikh
 
PDF
MySQL Document Store for Modern Applications
Olivier DASINI
 
PDF
MeteorJS Introduction
Nitya Narasimhan
 
PPT
Ops Jumpstart: MongoDB Administration 101
MongoDB
 
PPTX
JS App Architecture
Corey Butler
 
If NoSQL is your answer, you are probably asking the wrong question.
Lukas Smith
 
Polyglot Database - Linuxcon North America 2016
Dave Stokes
 
SQL or NoSQL, is this the question? - George Grammatikos
George Grammatikos
 
Indic threads pune12-nosql now and path ahead
IndicThreads
 
Scaling the Content Repository with Elasticsearch
Nuxeo
 
Moving from SQL Server to MongoDB
Nick Court
 
SQL vs NoSQL deep dive
Ahmed Shaaban
 
NoSQL Basics and MongDB
Shamima Yeasmin Mukta
 
NoSQL - No Security?
Gavin Holt
 
NoSQL Databases Introduction - UTN 2013
Facundo Farias
 
Enterprise NoSQL: Silver Bullet or Poison Pill
Billy Newport
 
NoSQL Endgame DevoxxUA Conference 2020
Thodoris Bais
 
vOfficeware Brown Bag - NOSQL
apexdodge
 
Mongo Bb - NoSQL tutorial
Mohan Rathour
 
MySQL Document Store for Modern Applications
Olivier DASINI
 
MeteorJS Introduction
Nitya Narasimhan
 
Ops Jumpstart: MongoDB Administration 101
MongoDB
 
JS App Architecture
Corey Butler
 
Ad

Recently uploaded (20)

PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Digital Circuits, important subject in CS
contactparinay1
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 

Introduction to NoSQL Database

  • 1. Introduction to NoSQL Database Mohammad Al Ghanem Senior Software Engineer
  • 2. Outline  Introduction To NoSQL.  Web Application Data growth.  Characteristic of NoSQL.  ACID.  BASE.  CAP Theory.  Major NoSQL Types.  Developers Viewpoint.  Look at Queries syntax.  NoSQL Shells.  Summary.  Questions.
  • 3. Introduction to NoSQL  Stands for Not Only SQL.  The idea of NoSQL founded in 1998 with term lightweightSchemaLess by Carlo Strozzi.  Open source database.  NoSQL will be the future database.  Very compatible with distributed systems.  Lower cost.  High performance database.  Founded to handle huge data space.  Used by Facebook , Google , Wikipedia …
  • 5. Characteristic of NoSQL  Large data volumes.  Scalable replication and distribution (Horizontal scaling).  Queries need to return answers quickly.  Asynchronous Inserts & Updates.  Schema-less.  Designed to support Caching without 3-rd party tools.  ACID transaction properties are not needed.  BASE here.  CAP Theorem.  No Joins statement.  No complicated Relationships  Less administration time(less cost).
  • 6. ACID  Atomic – All transaction completes (commit) or none of it completes.  Consistent – Consistency is defined in terms of constraints.  Isolated – The transaction will behave as if it is the only operation being performed upon the database  Durable – Upon completion of the transaction, the operation will not be reversed.
  • 7. BASE  Basically Available.  Soft state(expiration of information).  Eventually Consistent.  Weak consistency.  Availability first.  Simpler and faster.
  • 9. Major NoSQL Types  Key-Value Store.  Hashing.  Basic get/put/delete.  Crazy fast because there is key to get set of values.  Document Store.  JSON,XML … document structured.  No Join.(handle it in your code).  Column Database.  Each storage block contains data from only one column.  Reduce access and scanning time.  Still use tables without joins statements.  Better for data analytics.
  • 10. Developers Viewpoint ! SQL is better ?  Natural reaction.  Everyone's experience.  Fear of change. NoSQL Will :  Simplify your data model.  Easy to install.  your bugs will be fewer and easier to find.  Lower administration / less DBAs.  performance is going to be awesome.  Scale will be much simpler.  Rapid Development.  Large binary objects.  Graphs/relationships.
  • 11. Look at Queries syntax  db.inventory.find( { type: "snacks" } );  db.inventory.find( { type: 'food', price: { $lt: 9.95 } } );  db.inventory.find( { producer: { company: 'ABC123', address: '123 Street' } } );  db.inventory.find( { memos: { $elemMatch: { memo : 'on time', by: 'shipping' } } } );  db.inventory.insert( { _id: 10, type: "misc", item: "card", qty: 15 } );  db.users.remove( { status: "D" } )  db.users.insert( { name: "sue", age: 26, status: "A" } )  db.users.update( { age: { $gt: 18 } }, { $set: { status: "A" } }, { multi: true } )  db.inventory.save( { type: "book", item: "notebook", qty: 40 } )
  • 12. What's about functions ? var myCursor = db.inventory.find( { type: 'food' } ); myCursor.forEach(printjson); var myCursor = db.inventory.find( { type: 'food' } ); var documentArray = myCursor.toArray(); var myDocument = documentArray[3]; Query Analysis db.inventory.find( { type: 'food' } ).explain() Output Here
  • 13. Summary NoSQL :  Handle huge data.  High availability with small cost.  More data redundancy.  High performance.  Less administration time.  Less standards. SQL :  Good to solve ACID problems.  Expensive.  Less data redundancy.  Increasing availability mean increasing cost.  More standards.  More administration. Pick the right tool for your job !
  • 14. Thanks for your attention  Questions ?

Editor's Notes

  • #8: Soft state : Data may be time-dependent on user interaction with possible expiration after a period of time. The data must be updated or accessed to remain relevant in the system.