SlideShare a Scribd company logo
NoSQL Databases
By Carlos Alberto Benitez - @betustwit
What is NoSQL?
Relational databases, were not designed to work with the scale and
agility challenges that face modern applications, nor were they built to
take advantage of the storage and processing power available today.
NoSQL involves a wide variety of different database technologies that
were developed in response to a rise in the volume of data stored and
performance and processing needs.
What is NoSQL?
NoSQL technology was pioneered by leading internet companies how
Google, Amazon, Facebook and LinkedIn.
NoSQL is frequently called Not Only SQL, since it is not always
necessary to use structured queries for data access.
The NoSQL was designed to store and manage large volume of data
with a response time of less than relational databases where the
read/write operations are very optimized.
Motivations for this approach include simplicity of design, horizontal
scaling and data availability.
Why NoSQL?
• Is more efficient that Relational DB.
• Sharing and replication are simply.
• The NoSQL are more tolerant to fails.
• Focused to horizontal scalability.
• The relational model takes data and separates it into many
interrelated tables that contain rows and columns with one
structure defined, in NoSQL this is not necessary.
• Schema free (Dynamic schema).
• High data velocity (read/write optimizations).
• Allow storage of data that is structured, semi-structured and
unstructured.
Why NoSQL?
• More capacity for manage big data volume.
• Data can be stored and managed in different locations (Sharding).
• Exists many alternatives Open source.
When use NoSQL?
• NoSQL solves the performance of relational databases for handling
large volumes of data.
• NoSQL is especially useful when an enterprise needs to access and
analyze massive amounts of unstructured data.
Types (Classified by data store)
Category DB Open Source
Column families
Cassandra Yes
Hypertable Yes
Hadoop Yes
Document
MongoDB Yes
CouchDB Yes
RavenDB Yes
Key-Value
Redis Yes
Riak Yes
DynamoDB No
Graph
Neo4j Yes
HyperGraphDB No
InfoGrid Yes
Object
Db4o Yes
EyeDB Yes
Perst Yes
NoSQL Databases List
http://nosql-database.org
MongoDB
MongoDB is a document database that provides high performance,
high availability and easy scalability.
Each element are stored how documents in collections.
MongoDB supports dynamic schema design, allowing the documents in
a collection to have different fields and structures.
Site: http://www.mongodb.org
Manual: http://docs.mongodb.org/manual
MongoDB - analogy
Relational DB MongoDB
Database Database
Tables Collections
Records Documents
Columns/fields Key-value pair
MongoDB - Document
MongoDB - Document
{
title: "MongoDB: The Definitive Guide",
author: [ "Kristina Chodorow", "Mike Dirolf" ],
published_date: ISODate("2010-09-24"),
pages: 216,
language: "English",
publisher: {
name: "O'Reilly Media",
founded: 1980,
location: "CA"
}
}
MongoDB - Sharding
Sharding is a method for storing data across multiple machines.
Redis DB
Redis is an open source, advanced key-value cache and store. It is
often referred to as a data structure server since keys can contain
strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs.
Redis is an in-memory database.
Site: http://redis.io
Documentation: http://redis.io/documentation
Try Redis: http://try.redis.io
Redis DB - Persistence
RDB (Redis Data Base)
•The RDB persistence performs point-in-time snapshots of your
dataset at specified intervals.
•RDB is a very compact single-file (perfect for backups).
•RDB allows faster restarts with big datasets compared to AOF.
•RDB is NOT good for minimize the chance of data loss.
•The intervals can be configured on redis.conf file in the
SNAPSHOTTING section.
Redis DB – Persistence
AOF (Append Only File)
•The AOF logs every write operation received by the server.
•Commands are logged using the same format as the Redis protocol.
•It is possible to combine both AOF and RDB.
•The AOF log is an append only log (has not corruption problems if there
is a power outage).
•AOF contains a log of all the operations one after the other.
•AOF files are usually bigger than the equivalent RDB files for the same
dataset.
•Options: YES/NO (appendfsync: Always, Everysec, No).
Redis DB - Data Types
Strings: Are the most basic kind of Redis value, can contain any kind
of data, for instance a JPEG image. A String value can be at max 512
Megabytes in length.
Lists: Redis Lists are simply lists of strings, sorted by insertion order.
The max length of a list is 232 - 1 elements (more than 4 billion of
elements per list). Use: Model a timeline in a social network
Sets: Redis Sets are an unordered collection of Strings, Redis Sets
not allow repeated members. Is possible make unions, intersections,
differences of sets in very short time.
Redis DB - Data Types
Sorted Sets: Are similarly to Sets, the difference is that every
member of a Sorted Set is associated with score, that is used in order
to take the sorted set ordered. Use: Search engine how Google based
on score for results.
Hashes: Are the most similar to relational database structure. Are
maps between string fields and string values, so they are the perfect
data type to represent objects (eg: A User with a number of fields like
name, surname, age, and so forth)
Redis DB - Replication
Redis replication is a very simple to use and configure master-slave
replication that allows slave Redis servers to be exact copies of master
servers.
•Redis uses asynchronous replication.
•A master can have multiple slaves.
•Slaves are able to accept connections from other slaves.
•Replication is also non-blocking on the master and slave side.
Configuration (redis.conf -> REPLICATION)
slaveof <masterip> <masterport>
By Carlos Alberto Benitez - @betustwit

More Related Content

PPTX
introduction to NOSQL Database
nehabsairam
 
PPTX
No SQL- The Future Of Data Storage
Bethmi Gunasekara
 
PPTX
An Intro to NoSQL Databases
Rajith Pemabandu
 
PPTX
NoSQL databases
Filip Ilievski
 
PDF
Nosql database presentation
musaab fathi
 
PPTX
Introduction to NoSQL
PolarSeven Pty Ltd
 
PPTX
Mongo db
Kowndinya Mannepalli
 
PDF
Introduction to NoSQL
Dimitar Danailov
 
introduction to NOSQL Database
nehabsairam
 
No SQL- The Future Of Data Storage
Bethmi Gunasekara
 
An Intro to NoSQL Databases
Rajith Pemabandu
 
NoSQL databases
Filip Ilievski
 
Nosql database presentation
musaab fathi
 
Introduction to NoSQL
PolarSeven Pty Ltd
 
Introduction to NoSQL
Dimitar Danailov
 

What's hot (20)

PPTX
Non relational databases-no sql
Ram kumar
 
PDF
NoSQL Databases
BADR
 
PDF
NoSQL
Radu Potop
 
PPTX
Appache Cassandra
nehabsairam
 
PDF
10 mongo db
Ahmed Elbassel
 
PPTX
NoSQL
Radu Vunvulea
 
PPTX
NoSql Data Management
sameerfaizan
 
PPTX
Introduction to NOSQL databases
Ashwani Kumar
 
PPTX
NoSQL and MapReduce
J Singh
 
PPTX
Key-Value NoSQL Database
Heman Hosainpana
 
PPT
Graph database
Shruti Arya
 
PPTX
An Introduction to Big Data, NoSQL and MongoDB
William LaForest
 
PDF
No sql databases
Walaa Hamdy Assy
 
PDF
Graph Database
Richard Kuo
 
PPT
NoSQL Slideshare Presentation
Ericsson Labs
 
PPTX
NOSQL vs SQL
Mohammed Fazuluddin
 
PPTX
London HUG
Boudicca
 
PDF
NoSQL Databases
Eduard Tudenhoefner
 
PPTX
NoSQL Databases
Ashish Karki
 
PPTX
«NoSQL Databases and Polyglot Persistence»
Olga Lavrentieva
 
Non relational databases-no sql
Ram kumar
 
NoSQL Databases
BADR
 
NoSQL
Radu Potop
 
Appache Cassandra
nehabsairam
 
10 mongo db
Ahmed Elbassel
 
NoSql Data Management
sameerfaizan
 
Introduction to NOSQL databases
Ashwani Kumar
 
NoSQL and MapReduce
J Singh
 
Key-Value NoSQL Database
Heman Hosainpana
 
Graph database
Shruti Arya
 
An Introduction to Big Data, NoSQL and MongoDB
William LaForest
 
No sql databases
Walaa Hamdy Assy
 
Graph Database
Richard Kuo
 
NoSQL Slideshare Presentation
Ericsson Labs
 
NOSQL vs SQL
Mohammed Fazuluddin
 
London HUG
Boudicca
 
NoSQL Databases
Eduard Tudenhoefner
 
NoSQL Databases
Ashish Karki
 
«NoSQL Databases and Polyglot Persistence»
Olga Lavrentieva
 
Ad

Viewers also liked (15)

PPTX
KCB101 Assignment 2
AELawrence
 
PPT
100th day of school
Hannah McElroy
 
DOCX
Actitud (1)2
Maria Jimenez
 
PDF
ICT Indicators in Brief December 2013
Mahmoud A. Rabo
 
PPT
Desarrollo de sistemas con PHP y Redis
Carlos Alberto Benitez
 
PDF
Media and comm storyboard slides
AELawrence
 
PDF
Mdg africa report_2014_eng
Elke HP Hannel
 
PDF
Freelancing 101 Workshop 2016
Mahmoud A. Rabo
 
PDF
The Future of the Internet Economy Egypt 2014
Mahmoud A. Rabo
 
PDF
Social media workshop #s3geeks Day 1
Mahmoud A. Rabo
 
PDF
Linkedin workshop
Mahmoud A. Rabo
 
PDF
Subiecte rezolvate la examenul de Neurologie [REMASTERED]
Vyacheslav Moshin Jr
 
PPTX
Freelance Workshop - ورشة عن العمل الحرّ
Mahmoud A. Rabo
 
PPT
Mind-mapping for Developers
Rey Mayson
 
PPTX
How to -Become- a Great Designer
Rey Mayson
 
KCB101 Assignment 2
AELawrence
 
100th day of school
Hannah McElroy
 
Actitud (1)2
Maria Jimenez
 
ICT Indicators in Brief December 2013
Mahmoud A. Rabo
 
Desarrollo de sistemas con PHP y Redis
Carlos Alberto Benitez
 
Media and comm storyboard slides
AELawrence
 
Mdg africa report_2014_eng
Elke HP Hannel
 
Freelancing 101 Workshop 2016
Mahmoud A. Rabo
 
The Future of the Internet Economy Egypt 2014
Mahmoud A. Rabo
 
Social media workshop #s3geeks Day 1
Mahmoud A. Rabo
 
Linkedin workshop
Mahmoud A. Rabo
 
Subiecte rezolvate la examenul de Neurologie [REMASTERED]
Vyacheslav Moshin Jr
 
Freelance Workshop - ورشة عن العمل الحرّ
Mahmoud A. Rabo
 
Mind-mapping for Developers
Rey Mayson
 
How to -Become- a Great Designer
Rey Mayson
 
Ad

Similar to NoSQL Databases (20)

PPTX
unit2-ppt1.pptx
revathigollu23
 
PDF
Vskills Apache Cassandra sample material
Vskills
 
PDF
NOsql Presentation.pdf
AkshayDwivedi31
 
PPTX
Unit 3 MongDB
Praveen M Jigajinni
 
PPTX
cours database pour etudiant NoSQL (1).pptx
ssuser1fde9c
 
PPTX
Introduction to Data Science NoSQL.pptx
tarakesh7199
 
PDF
SQL or NoSQL - how to choose
Lars Thorup
 
PPTX
NoSQL.pptx
RithikRaj25
 
PPTX
Unit 5.pptx computer graphics and gaming
SwapnaliLimkar
 
PPTX
No sq lv2
Nusrat Sharmin
 
PDF
the rising no sql technology
INFOGAIN PUBLICATION
 
PPTX
Presentation on NOSQL and mongodb .pptx
jokisil929
 
PPTX
Why no sql ? Why Couchbase ?
Ahmed Rashwan
 
PDF
MongoDB Lab Manual (1).pdf used in data science
bitragowthamkumar1
 
PPTX
UNIT-2.pptx
SIVAKUMARM603675
 
PPT
NoSql Databases
Nimat Khattak
 
PDF
Introduction of Redis as NoSQL Database
Abhijeet Shekhar
 
PPTX
MongoDB NoSQL - Developer Guide
Shiv K Sah
 
PPTX
Mongo db
Morteza TavanaRad
 
PDF
Nosql part1 8th December
Ruru Chowdhury
 
unit2-ppt1.pptx
revathigollu23
 
Vskills Apache Cassandra sample material
Vskills
 
NOsql Presentation.pdf
AkshayDwivedi31
 
Unit 3 MongDB
Praveen M Jigajinni
 
cours database pour etudiant NoSQL (1).pptx
ssuser1fde9c
 
Introduction to Data Science NoSQL.pptx
tarakesh7199
 
SQL or NoSQL - how to choose
Lars Thorup
 
NoSQL.pptx
RithikRaj25
 
Unit 5.pptx computer graphics and gaming
SwapnaliLimkar
 
No sq lv2
Nusrat Sharmin
 
the rising no sql technology
INFOGAIN PUBLICATION
 
Presentation on NOSQL and mongodb .pptx
jokisil929
 
Why no sql ? Why Couchbase ?
Ahmed Rashwan
 
MongoDB Lab Manual (1).pdf used in data science
bitragowthamkumar1
 
UNIT-2.pptx
SIVAKUMARM603675
 
NoSql Databases
Nimat Khattak
 
Introduction of Redis as NoSQL Database
Abhijeet Shekhar
 
MongoDB NoSQL - Developer Guide
Shiv K Sah
 
Nosql part1 8th December
Ruru Chowdhury
 

Recently uploaded (20)

PDF
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
PDF
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
PDF
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
PDF
Immersive experiences: what Pharo users do!
ESUG
 
PDF
lesson-2-rules-of-netiquette.pdf.bshhsjdj
jasmenrojas249
 
PPTX
Presentation about variables and constant.pptx
kr2589474
 
PDF
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
PDF
Protecting the Digital World Cyber Securit
dnthakkar16
 
PDF
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
PDF
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
PDF
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
PPTX
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
PDF
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
PDF
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
PPTX
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
PPTX
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
PPTX
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
PPTX
Presentation about variables and constant.pptx
safalsingh810
 
PDF
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
ESUG
 
PDF
WatchTraderHub - Watch Dealer software with inventory management and multi-ch...
WatchDealer Pavel
 
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
Immersive experiences: what Pharo users do!
ESUG
 
lesson-2-rules-of-netiquette.pdf.bshhsjdj
jasmenrojas249
 
Presentation about variables and constant.pptx
kr2589474
 
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
Protecting the Digital World Cyber Securit
dnthakkar16
 
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
Presentation about variables and constant.pptx
safalsingh810
 
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
ESUG
 
WatchTraderHub - Watch Dealer software with inventory management and multi-ch...
WatchDealer Pavel
 

NoSQL Databases

  • 1. NoSQL Databases By Carlos Alberto Benitez - @betustwit
  • 2. What is NoSQL? Relational databases, were not designed to work with the scale and agility challenges that face modern applications, nor were they built to take advantage of the storage and processing power available today. NoSQL involves a wide variety of different database technologies that were developed in response to a rise in the volume of data stored and performance and processing needs.
  • 3. What is NoSQL? NoSQL technology was pioneered by leading internet companies how Google, Amazon, Facebook and LinkedIn. NoSQL is frequently called Not Only SQL, since it is not always necessary to use structured queries for data access. The NoSQL was designed to store and manage large volume of data with a response time of less than relational databases where the read/write operations are very optimized. Motivations for this approach include simplicity of design, horizontal scaling and data availability.
  • 4. Why NoSQL? • Is more efficient that Relational DB. • Sharing and replication are simply. • The NoSQL are more tolerant to fails. • Focused to horizontal scalability. • The relational model takes data and separates it into many interrelated tables that contain rows and columns with one structure defined, in NoSQL this is not necessary. • Schema free (Dynamic schema). • High data velocity (read/write optimizations). • Allow storage of data that is structured, semi-structured and unstructured.
  • 5. Why NoSQL? • More capacity for manage big data volume. • Data can be stored and managed in different locations (Sharding). • Exists many alternatives Open source.
  • 6. When use NoSQL? • NoSQL solves the performance of relational databases for handling large volumes of data. • NoSQL is especially useful when an enterprise needs to access and analyze massive amounts of unstructured data.
  • 7. Types (Classified by data store) Category DB Open Source Column families Cassandra Yes Hypertable Yes Hadoop Yes Document MongoDB Yes CouchDB Yes RavenDB Yes Key-Value Redis Yes Riak Yes DynamoDB No Graph Neo4j Yes HyperGraphDB No InfoGrid Yes Object Db4o Yes EyeDB Yes Perst Yes
  • 9. MongoDB MongoDB is a document database that provides high performance, high availability and easy scalability. Each element are stored how documents in collections. MongoDB supports dynamic schema design, allowing the documents in a collection to have different fields and structures. Site: http://www.mongodb.org Manual: http://docs.mongodb.org/manual
  • 10. MongoDB - analogy Relational DB MongoDB Database Database Tables Collections Records Documents Columns/fields Key-value pair
  • 12. MongoDB - Document { title: "MongoDB: The Definitive Guide", author: [ "Kristina Chodorow", "Mike Dirolf" ], published_date: ISODate("2010-09-24"), pages: 216, language: "English", publisher: { name: "O'Reilly Media", founded: 1980, location: "CA" } }
  • 13. MongoDB - Sharding Sharding is a method for storing data across multiple machines.
  • 14. Redis DB Redis is an open source, advanced key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs. Redis is an in-memory database. Site: http://redis.io Documentation: http://redis.io/documentation Try Redis: http://try.redis.io
  • 15. Redis DB - Persistence RDB (Redis Data Base) •The RDB persistence performs point-in-time snapshots of your dataset at specified intervals. •RDB is a very compact single-file (perfect for backups). •RDB allows faster restarts with big datasets compared to AOF. •RDB is NOT good for minimize the chance of data loss. •The intervals can be configured on redis.conf file in the SNAPSHOTTING section.
  • 16. Redis DB – Persistence AOF (Append Only File) •The AOF logs every write operation received by the server. •Commands are logged using the same format as the Redis protocol. •It is possible to combine both AOF and RDB. •The AOF log is an append only log (has not corruption problems if there is a power outage). •AOF contains a log of all the operations one after the other. •AOF files are usually bigger than the equivalent RDB files for the same dataset. •Options: YES/NO (appendfsync: Always, Everysec, No).
  • 17. Redis DB - Data Types Strings: Are the most basic kind of Redis value, can contain any kind of data, for instance a JPEG image. A String value can be at max 512 Megabytes in length. Lists: Redis Lists are simply lists of strings, sorted by insertion order. The max length of a list is 232 - 1 elements (more than 4 billion of elements per list). Use: Model a timeline in a social network Sets: Redis Sets are an unordered collection of Strings, Redis Sets not allow repeated members. Is possible make unions, intersections, differences of sets in very short time.
  • 18. Redis DB - Data Types Sorted Sets: Are similarly to Sets, the difference is that every member of a Sorted Set is associated with score, that is used in order to take the sorted set ordered. Use: Search engine how Google based on score for results. Hashes: Are the most similar to relational database structure. Are maps between string fields and string values, so they are the perfect data type to represent objects (eg: A User with a number of fields like name, surname, age, and so forth)
  • 19. Redis DB - Replication Redis replication is a very simple to use and configure master-slave replication that allows slave Redis servers to be exact copies of master servers. •Redis uses asynchronous replication. •A master can have multiple slaves. •Slaves are able to accept connections from other slaves. •Replication is also non-blocking on the master and slave side. Configuration (redis.conf -> REPLICATION) slaveof <masterip> <masterport>
  • 20. By Carlos Alberto Benitez - @betustwit