SlideShare ist ein Scribd-Unternehmen logo
1 von 40
Downloaden Sie, um offline zu lesen
Walaa Hamdy Assy
Software Engineer
 A NoSQL (originally referring to "non SQL" or "non
relational") database provides a mechanism
for storage and retrieval of data that is modeled in
means other than the tabular relations used
in relational databases.
 Such databases have existed since the late 1960s,
but did not obtain the "NoSQL" moniker until a surge
of popularity in the early twenty-first century triggered
by the needs of Web 2.0 companies such
as Facebook, Google, and Amazon.
 NoSQL databases are increasingly used in big
data and real time web applications. NoSQL systems
are also sometimes called "Not only SQL" to
emphasize that they may support SQL-like query
languages.
 Motivations for this approach include:
simplicity of design, simpler horizontal
scaling to clusters of machines which
is a problem for relational databases
and finer control over availability.
 a more flexible data model
 higher scalability
 Superior performance
 No expensive JOIN operations and
complex, multi-record transactions.
 Column: Accumulo, Cassandra, Druid, HBase, Vertica
, SAP HANA
 Document: Apache
CouchDB, ArangoDB, Clusterpoint, Couchbase, Cos
mos DB, HyperDex, IBM
Domino, MarkLogic, MongoDB, OrientDB, Qizx, Rethin
kDB
 Keyvalue: Aerospike, ArangoDB, Couchbase, Dynam
o reddis
 Graph: AllegroGraph, ArangoDB, InfiniteGraph, Apac
he Giraph, MarkLogic, Neo4J, OrientDB
 Multi-
model: ArangoDB, Couchbase, FoundationDB, Infinity
DB, MarkLogic, OrientDB
 Document Model
 Graph Model
 Key-Value Model
 Wide Column Model
 The biggest difference between non-relational
databases lies in the ability to query data efficiently.
 Document databases provide the richest query
functionality, which allows them to address a wide
variety of operational and real-time analytics
applications.
 Key-value stores and wide column stores provide a
single means of accessing data: by primary key. This
can be fast, but they offer very limited query
functionality and may impose additional development
costs and application-level requirements to support
anything more than basic query patterns.
 Whereas relational databases store data in
rows and columns, document databases store
data in documents. These documents typically
use a structure that is like JSON a format
Documents provide an intuitive and natural
way to model data that is closely aligned with
object-oriented programming –
 each document is effectively an object.
Documents contain one or more Fields, where
each Field contains a typed value, such as a
string, date, binary, or array.
Examples: MongoDB and CouchDB.
 MongoDB has the largest commercial
backing
 The largest and most active community;
support teams spread across the world
providing 24x7 coverage;
 user-groups in most major cities
 extensive documentation.
Term equivalent
in RDBMS
Description
collection table This is a grouping of mongo dB documents .
The collection contains documents which in
turn contains Fields, which in turn are key-
value pairs.
cursor cursor Pointer to a result set of queries
database database Container of collections
document row In MongoDB, the data is stored in
documents.
field column the column denotes a set of data values.
These in MongoDB are known as Fields.
Embedded
documents
Joins the data is normally stored in a single
collection, but separated by using
Embedded documents. So there is no
concept of joins in Mongodb.
SQLMONGODB
String BLOB BOOLEAN Min/Max
Keys
DOULBE
Object Array Integer Symbol Date
use javatpoint //create database
db.javatpoint.insert( //insert a document
{
course: "java",
details: {
duration: "6 months",
Trainer: "Sonoo jaiswal"
},
Batch: [ { size: "Small", qty: 15 }, { size: "Medium", qty: 25 } ],
category: "Programming language"
}
)
db.javatpoint.find() //check the inserted document
 MongoDB is well suited for Bigdata and
mobile & social infrastructure.
 MongoDB provides Replication, High
availability .
 MongoDB is used by companies like
Foursquare, SourceForge, The New York
Times, Lexis ,Orange Digital etc.
 CouchDB is a JSON document-oriented database
written in Erlang.
 It is a highly concurrent database designed to be
easily replicable, horizontally, across numerous
devices and be fault tolerant.
 It is part of the NoSQL generation of databases.
 It is an open source Apache foundation project.
 It allows applications to store JSON documents via its
RESTful interface.
 It makes use of map/reduce to index and query the
database.
 CouchDB is a database designed to run on the
internet of today.
FAUXTONCurlUTILITY
 http://127.0.0.1:5984/_utils/
 curl -
X PUT http://127.0.0.1:5984/database_na
me
String Float integer boolean Arrays
Object nulls
{ // a document example
"Subject": "I like Plankton",
"Author": "Rusty",
"PostedDate": "2006-08-15T17:30:12-04:00",
"Tags": [
"plankton",
"baseball",
"decisions"
],
"Body": "I decided today that I don't like baseball. I like plankton."
}
 Create a document - cURL
curl -H 'Content-Type: application/json'  -X PUT
http://127.0.0.1:5984/my_database/"001" -d
'{"Name":“john", "age":"23" , "Designation" : "Designer" }'
 Viewing all documents - cURL
curl -X GET http://127.0.0.1:5984/mycouchshop/_all_docs
 Creating a simple map function – FAUXTON
function (doc) {
if (doc.type === "product" && doc.name) {
emit(doc.name, doc);
}
}
 JSON Documents - Everything stored in CouchDB boils
down to a JSON document.
 RESTful Interface - From creation to replication to
data insertion, every management and data task in
CouchDB can be done via HTTP.
 N-Master Replication - You can make use of an
unlimited amount of 'masters', making for some very
interesting replication topologies.
 Built for Offline - CouchDB can replicate to devices
(like Android phones) that can go offline and handle
data sync for you when the device is back online.
 Replication Filters - You can filter precisely the data
you wish to replicate to different nodes.
 Browser Based GUI: CouchDB provides an interface
Futon which facilitates a browser based GUI to
handle your data, permission and configuration.
FEATURE CouchDB MongoDB
Data Model Document model Document model
Interface HTTP/REST binary protocol and custom
protocol over TCP/IP
Object Storage database contains
documents.
database contains collections
and collection contains
documents.
Query Method Map/Reduce -
JavaScript
Map/Reduce -JavaScript
object-based query language
Replication master-master
replication
master-slave replication.
Consistency consistent strongly consistent
Written in Erlang C++
 From a data model perspective, key-
value stores are the most basic type of
non-relational database. Every item in
the database is stored as an attribute
name, or key,together with its value. The
value, however, is entirely opaque to the
system; data can only be queried by the
key.
 Each record can vary in the number of columns that are
stored. Columns can be grouped together for access in
column families, or columns can be spread across multiple
column families. Data is retrieved by primary key per
column family.
 Applications: Key value stores and wide column stores
are useful for a narrow set of applications that only query
data by a single key value. The appeal of these systems is
their performance and scalability, which can be highly
optimized due to the simplicity of the data access patterns
and opacity of the data itself.
 Examples: Riak and Redis (Key-Value)
HBase and Cassandra (Wide Column).
 Apache Cassandra is highly scalable, high
performance, distributed NoSQL database.
Cassandra is designed to handle huge
amount of data across many commodity
servers, providing high availability without a
single point of failure.
 Cassandra has a distributed architecture
which is capable to handle a huge amount
of data. Data is placed on different
machines with more than one replication
factor to attain a high availability without a
single point of failure.
 Cassandra is highly scalable, high
performance, consistent . Cassandra is a
column-oriented database.
 Cassandra provides easy data distribution.
 Cassandra follows the distribution design of
Amazons dynamo and its data model
design is based on Google's Bigtable.
 Cassandra was initially created at
Facebook for inbox search and now it is
being used by some of the biggest
companies like Facebook, Twitter, ebay,
Netflix, Cisco, Rackspace etc.
 A column is the basic unit in a wide-
column database and consists of a key
and value pair. For example, a column
might have the key “name” and the
value could be a string representing a
name.
 Messaging
 Handle high speed Applications
 Social Media Analytics
 Product Catalogs and retailing
 Keyspaces
outermost container which contains data corresponding to an application.
 Column
A column is the basic unit in a wide-column database and consists of a key and
value pair.
 Column families
column family is a container of a collection of rows. Each row contains
ordered columns.
 Super columns
A super column contains many key-value pairs
 Indexes
 queries
BIGINT BLOB BOOLEAN DECIMAL DOULBE
Float Frozen int inet List
Map Set Text Timestamp varchar
It uses CQL: cassandra query language.
CREATE TABLE student(
student_id int PRIMARY KEY,
student_name text,
student_city text,
student_fees varint,
student_phone varint
);
SELECT * FROM student;
 Graph databases use graph structures
with nodes, edges and properties to
represent data. In essence, data is
modeled as a network of relationships
between specie elements.
 navigating social network connections,
network topologies or supply chains.
 Examples: Neo4j and Giraph.
 https://kkovacs.eu/cassandra-vs-
mongodb-vs-couchdb-vs-redis?
 https://www.datastax.com/nosql-
databases/benchmarks-cassandra-vs-
mongodb-vs-hbase
 https://db-
engines.com/en/system/Cassandra%3B
CouchDB%3BMongoDB
 https://thehftguy.files.wordpress.com/20
17/03/nosql-flowchart.png

Weitere ähnliche Inhalte

Was ist angesagt?

CS 542 Parallel DBs, NoSQL, MapReduce
CS 542 Parallel DBs, NoSQL, MapReduceCS 542 Parallel DBs, NoSQL, MapReduce
CS 542 Parallel DBs, NoSQL, MapReduceJ Singh
 
Mongo db a deep dive of mongodb indexes
Mongo db  a deep dive of mongodb indexesMongo db  a deep dive of mongodb indexes
Mongo db a deep dive of mongodb indexesRajesh Kumar
 
Mongodb intro
Mongodb introMongodb intro
Mongodb introchristkv
 
Backbone using Extensible Database APIs over HTTP
Backbone using Extensible Database APIs over HTTPBackbone using Extensible Database APIs over HTTP
Backbone using Extensible Database APIs over HTTPMax Neunhöffer
 
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
 
Processing large-scale graphs with Google Pregel
Processing large-scale graphs with Google PregelProcessing large-scale graphs with Google Pregel
Processing large-scale graphs with Google PregelMax Neunhöffer
 
MongoDB and Hadoop Handling for Big Data
MongoDB and Hadoop Handling for Big DataMongoDB and Hadoop Handling for Big Data
MongoDB and Hadoop Handling for Big DataMuhammad zubair
 
Hw09 Understanding Natural Language
Hw09   Understanding Natural LanguageHw09   Understanding Natural Language
Hw09 Understanding Natural LanguageCloudera, Inc.
 
Web Database
Web DatabaseWeb Database
Web Databaseidroos7
 
Query mechanisms for NoSQL databases
Query mechanisms for NoSQL databasesQuery mechanisms for NoSQL databases
Query mechanisms for NoSQL databasesArangoDB Database
 
Using MongoDB + Hadoop Together
Using MongoDB + Hadoop TogetherUsing MongoDB + Hadoop Together
Using MongoDB + Hadoop TogetherMongoDB
 
SQL Server 2012 Beyond Relational Performance and Scale
SQL Server 2012 Beyond Relational Performance and ScaleSQL Server 2012 Beyond Relational Performance and Scale
SQL Server 2012 Beyond Relational Performance and ScaleMichael Rys
 

Was ist angesagt? (20)

CS 542 Parallel DBs, NoSQL, MapReduce
CS 542 Parallel DBs, NoSQL, MapReduceCS 542 Parallel DBs, NoSQL, MapReduce
CS 542 Parallel DBs, NoSQL, MapReduce
 
Oslo bekk2014
Oslo bekk2014Oslo bekk2014
Oslo bekk2014
 
Mongo db a deep dive of mongodb indexes
Mongo db  a deep dive of mongodb indexesMongo db  a deep dive of mongodb indexes
Mongo db a deep dive of mongodb indexes
 
Datastores
DatastoresDatastores
Datastores
 
Mongodb intro
Mongodb introMongodb intro
Mongodb intro
 
Backbone using Extensible Database APIs over HTTP
Backbone using Extensible Database APIs over HTTPBackbone using Extensible Database APIs over HTTP
Backbone using Extensible Database APIs over HTTP
 
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...
 
MongoDB
MongoDBMongoDB
MongoDB
 
Vskills Apache Cassandra sample material
Vskills Apache Cassandra sample materialVskills Apache Cassandra sample material
Vskills Apache Cassandra sample material
 
Hadoop
HadoopHadoop
Hadoop
 
DBPedia-past-present-future
DBPedia-past-present-futureDBPedia-past-present-future
DBPedia-past-present-future
 
Processing large-scale graphs with Google Pregel
Processing large-scale graphs with Google PregelProcessing large-scale graphs with Google Pregel
Processing large-scale graphs with Google Pregel
 
Unit 3 MongDB
Unit 3 MongDBUnit 3 MongDB
Unit 3 MongDB
 
MongoDB and Hadoop Handling for Big Data
MongoDB and Hadoop Handling for Big DataMongoDB and Hadoop Handling for Big Data
MongoDB and Hadoop Handling for Big Data
 
Hw09 Understanding Natural Language
Hw09   Understanding Natural LanguageHw09   Understanding Natural Language
Hw09 Understanding Natural Language
 
Web Database
Web DatabaseWeb Database
Web Database
 
Query mechanisms for NoSQL databases
Query mechanisms for NoSQL databasesQuery mechanisms for NoSQL databases
Query mechanisms for NoSQL databases
 
Using MongoDB + Hadoop Together
Using MongoDB + Hadoop TogetherUsing MongoDB + Hadoop Together
Using MongoDB + Hadoop Together
 
SQL Server 2012 Beyond Relational Performance and Scale
SQL Server 2012 Beyond Relational Performance and ScaleSQL Server 2012 Beyond Relational Performance and Scale
SQL Server 2012 Beyond Relational Performance and Scale
 
MongoDB DOC v1.5
MongoDB DOC v1.5MongoDB DOC v1.5
MongoDB DOC v1.5
 

Ähnlich wie No sql databases

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
 
2.Introduction to NOSQL (Core concepts).pptx
2.Introduction to NOSQL (Core concepts).pptx2.Introduction to NOSQL (Core concepts).pptx
2.Introduction to NOSQL (Core concepts).pptxRushikeshChikane2
 
NoSQL powerpoint presentation difference with rdbms
NoSQL powerpoint presentation difference with rdbmsNoSQL powerpoint presentation difference with rdbms
NoSQL powerpoint presentation difference with rdbmsAtulKabbur
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and UsesSuvradeep Rudra
 
NOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLNOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLRamakant Soni
 
NOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdfNOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdfajajkhan16
 
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
 
NOSQL and MongoDB Database
NOSQL and MongoDB DatabaseNOSQL and MongoDB Database
NOSQL and MongoDB DatabaseTariqul islam
 
Non relational databases-no sql
Non relational databases-no sqlNon relational databases-no sql
Non relational databases-no sqlRam kumar
 
Mongodb - NoSql Database
Mongodb - NoSql DatabaseMongodb - NoSql Database
Mongodb - NoSql DatabasePrashant Gupta
 
Document Based Data Modeling Technique
Document Based Data Modeling TechniqueDocument Based Data Modeling Technique
Document Based Data Modeling TechniqueCarmen Sanborn
 
EVALUATING CASSANDRA, MONGO DB LIKE NOSQL DATASETS USING HADOOP STREAMING
EVALUATING CASSANDRA, MONGO DB LIKE NOSQL DATASETS USING HADOOP STREAMINGEVALUATING CASSANDRA, MONGO DB LIKE NOSQL DATASETS USING HADOOP STREAMING
EVALUATING CASSANDRA, MONGO DB LIKE NOSQL DATASETS USING HADOOP STREAMINGijiert bestjournal
 
Elasticsearch vs MongoDB comparison
Elasticsearch vs MongoDB comparisonElasticsearch vs MongoDB comparison
Elasticsearch vs MongoDB comparisonjeetendra mandal
 

Ähnlich wie No sql databases (20)

The ABC of Big Data
The ABC of Big DataThe ABC of Big Data
The ABC of Big Data
 
Selecting best NoSQL
Selecting best NoSQL Selecting best NoSQL
Selecting best NoSQL
 
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
 
2.Introduction to NOSQL (Core concepts).pptx
2.Introduction to NOSQL (Core concepts).pptx2.Introduction to NOSQL (Core concepts).pptx
2.Introduction to NOSQL (Core concepts).pptx
 
NoSQL powerpoint presentation difference with rdbms
NoSQL powerpoint presentation difference with rdbmsNoSQL powerpoint presentation difference with rdbms
NoSQL powerpoint presentation difference with rdbms
 
NoSQL Basics and MongDB
NoSQL Basics and  MongDBNoSQL Basics and  MongDB
NoSQL Basics and MongDB
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and Uses
 
NOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLNOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQL
 
NOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdfNOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdf
 
No sq lv2
No sq lv2No sq lv2
No sq lv2
 
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
 
NOSQL and MongoDB Database
NOSQL and MongoDB DatabaseNOSQL and MongoDB Database
NOSQL and MongoDB Database
 
NoSQL
NoSQLNoSQL
NoSQL
 
Non relational databases-no sql
Non relational databases-no sqlNon relational databases-no sql
Non relational databases-no sql
 
Mongodb - NoSql Database
Mongodb - NoSql DatabaseMongodb - NoSql Database
Mongodb - NoSql Database
 
Document Based Data Modeling Technique
Document Based Data Modeling TechniqueDocument Based Data Modeling Technique
Document Based Data Modeling Technique
 
EVALUATING CASSANDRA, MONGO DB LIKE NOSQL DATASETS USING HADOOP STREAMING
EVALUATING CASSANDRA, MONGO DB LIKE NOSQL DATASETS USING HADOOP STREAMINGEVALUATING CASSANDRA, MONGO DB LIKE NOSQL DATASETS USING HADOOP STREAMING
EVALUATING CASSANDRA, MONGO DB LIKE NOSQL DATASETS USING HADOOP STREAMING
 
All About Database v1.1
All About Database  v1.1All About Database  v1.1
All About Database v1.1
 
Elasticsearch vs MongoDB comparison
Elasticsearch vs MongoDB comparisonElasticsearch vs MongoDB comparison
Elasticsearch vs MongoDB comparison
 
Nosql
NosqlNosql
Nosql
 

Kürzlich hochgeladen

Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 

Kürzlich hochgeladen (20)

Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 

No sql databases

  • 2.  A NoSQL (originally referring to "non SQL" or "non relational") database provides a mechanism for storage and retrieval of data that is modeled in means other than the tabular relations used in relational databases.  Such databases have existed since the late 1960s, but did not obtain the "NoSQL" moniker until a surge of popularity in the early twenty-first century triggered by the needs of Web 2.0 companies such as Facebook, Google, and Amazon.  NoSQL databases are increasingly used in big data and real time web applications. NoSQL systems are also sometimes called "Not only SQL" to emphasize that they may support SQL-like query languages.
  • 3.  Motivations for this approach include: simplicity of design, simpler horizontal scaling to clusters of machines which is a problem for relational databases and finer control over availability.
  • 4.  a more flexible data model  higher scalability  Superior performance  No expensive JOIN operations and complex, multi-record transactions.
  • 5.  Column: Accumulo, Cassandra, Druid, HBase, Vertica , SAP HANA  Document: Apache CouchDB, ArangoDB, Clusterpoint, Couchbase, Cos mos DB, HyperDex, IBM Domino, MarkLogic, MongoDB, OrientDB, Qizx, Rethin kDB  Keyvalue: Aerospike, ArangoDB, Couchbase, Dynam o reddis  Graph: AllegroGraph, ArangoDB, InfiniteGraph, Apac he Giraph, MarkLogic, Neo4J, OrientDB  Multi- model: ArangoDB, Couchbase, FoundationDB, Infinity DB, MarkLogic, OrientDB
  • 6.  Document Model  Graph Model  Key-Value Model  Wide Column Model
  • 7.
  • 8.  The biggest difference between non-relational databases lies in the ability to query data efficiently.  Document databases provide the richest query functionality, which allows them to address a wide variety of operational and real-time analytics applications.  Key-value stores and wide column stores provide a single means of accessing data: by primary key. This can be fast, but they offer very limited query functionality and may impose additional development costs and application-level requirements to support anything more than basic query patterns.
  • 9.  Whereas relational databases store data in rows and columns, document databases store data in documents. These documents typically use a structure that is like JSON a format Documents provide an intuitive and natural way to model data that is closely aligned with object-oriented programming –  each document is effectively an object. Documents contain one or more Fields, where each Field contains a typed value, such as a string, date, binary, or array. Examples: MongoDB and CouchDB.
  • 10.
  • 11.  MongoDB has the largest commercial backing  The largest and most active community; support teams spread across the world providing 24x7 coverage;  user-groups in most major cities  extensive documentation.
  • 12. Term equivalent in RDBMS Description collection table This is a grouping of mongo dB documents . The collection contains documents which in turn contains Fields, which in turn are key- value pairs. cursor cursor Pointer to a result set of queries database database Container of collections document row In MongoDB, the data is stored in documents. field column the column denotes a set of data values. These in MongoDB are known as Fields. Embedded documents Joins the data is normally stored in a single collection, but separated by using Embedded documents. So there is no concept of joins in Mongodb.
  • 13.
  • 15. String BLOB BOOLEAN Min/Max Keys DOULBE Object Array Integer Symbol Date
  • 16. use javatpoint //create database db.javatpoint.insert( //insert a document { course: "java", details: { duration: "6 months", Trainer: "Sonoo jaiswal" }, Batch: [ { size: "Small", qty: 15 }, { size: "Medium", qty: 25 } ], category: "Programming language" } ) db.javatpoint.find() //check the inserted document
  • 17.  MongoDB is well suited for Bigdata and mobile & social infrastructure.  MongoDB provides Replication, High availability .  MongoDB is used by companies like Foursquare, SourceForge, The New York Times, Lexis ,Orange Digital etc.
  • 18.
  • 19.  CouchDB is a JSON document-oriented database written in Erlang.  It is a highly concurrent database designed to be easily replicable, horizontally, across numerous devices and be fault tolerant.  It is part of the NoSQL generation of databases.  It is an open source Apache foundation project.  It allows applications to store JSON documents via its RESTful interface.  It makes use of map/reduce to index and query the database.  CouchDB is a database designed to run on the internet of today.
  • 20.
  • 21. FAUXTONCurlUTILITY  http://127.0.0.1:5984/_utils/  curl - X PUT http://127.0.0.1:5984/database_na me
  • 22. String Float integer boolean Arrays Object nulls { // a document example "Subject": "I like Plankton", "Author": "Rusty", "PostedDate": "2006-08-15T17:30:12-04:00", "Tags": [ "plankton", "baseball", "decisions" ], "Body": "I decided today that I don't like baseball. I like plankton." }
  • 23.  Create a document - cURL curl -H 'Content-Type: application/json' -X PUT http://127.0.0.1:5984/my_database/"001" -d '{"Name":“john", "age":"23" , "Designation" : "Designer" }'  Viewing all documents - cURL curl -X GET http://127.0.0.1:5984/mycouchshop/_all_docs  Creating a simple map function – FAUXTON function (doc) { if (doc.type === "product" && doc.name) { emit(doc.name, doc); } }
  • 24.  JSON Documents - Everything stored in CouchDB boils down to a JSON document.  RESTful Interface - From creation to replication to data insertion, every management and data task in CouchDB can be done via HTTP.  N-Master Replication - You can make use of an unlimited amount of 'masters', making for some very interesting replication topologies.  Built for Offline - CouchDB can replicate to devices (like Android phones) that can go offline and handle data sync for you when the device is back online.  Replication Filters - You can filter precisely the data you wish to replicate to different nodes.  Browser Based GUI: CouchDB provides an interface Futon which facilitates a browser based GUI to handle your data, permission and configuration.
  • 25. FEATURE CouchDB MongoDB Data Model Document model Document model Interface HTTP/REST binary protocol and custom protocol over TCP/IP Object Storage database contains documents. database contains collections and collection contains documents. Query Method Map/Reduce - JavaScript Map/Reduce -JavaScript object-based query language Replication master-master replication master-slave replication. Consistency consistent strongly consistent Written in Erlang C++
  • 26.  From a data model perspective, key- value stores are the most basic type of non-relational database. Every item in the database is stored as an attribute name, or key,together with its value. The value, however, is entirely opaque to the system; data can only be queried by the key.
  • 27.  Each record can vary in the number of columns that are stored. Columns can be grouped together for access in column families, or columns can be spread across multiple column families. Data is retrieved by primary key per column family.  Applications: Key value stores and wide column stores are useful for a narrow set of applications that only query data by a single key value. The appeal of these systems is their performance and scalability, which can be highly optimized due to the simplicity of the data access patterns and opacity of the data itself.  Examples: Riak and Redis (Key-Value) HBase and Cassandra (Wide Column).
  • 28.
  • 29.  Apache Cassandra is highly scalable, high performance, distributed NoSQL database. Cassandra is designed to handle huge amount of data across many commodity servers, providing high availability without a single point of failure.  Cassandra has a distributed architecture which is capable to handle a huge amount of data. Data is placed on different machines with more than one replication factor to attain a high availability without a single point of failure.
  • 30.  Cassandra is highly scalable, high performance, consistent . Cassandra is a column-oriented database.  Cassandra provides easy data distribution.  Cassandra follows the distribution design of Amazons dynamo and its data model design is based on Google's Bigtable.  Cassandra was initially created at Facebook for inbox search and now it is being used by some of the biggest companies like Facebook, Twitter, ebay, Netflix, Cisco, Rackspace etc.
  • 31.  A column is the basic unit in a wide- column database and consists of a key and value pair. For example, a column might have the key “name” and the value could be a string representing a name.
  • 32.  Messaging  Handle high speed Applications  Social Media Analytics  Product Catalogs and retailing
  • 33.
  • 34.
  • 35.  Keyspaces outermost container which contains data corresponding to an application.  Column A column is the basic unit in a wide-column database and consists of a key and value pair.  Column families column family is a container of a collection of rows. Each row contains ordered columns.  Super columns A super column contains many key-value pairs  Indexes  queries
  • 36. BIGINT BLOB BOOLEAN DECIMAL DOULBE Float Frozen int inet List Map Set Text Timestamp varchar
  • 37. It uses CQL: cassandra query language. CREATE TABLE student( student_id int PRIMARY KEY, student_name text, student_city text, student_fees varint, student_phone varint );
  • 38. SELECT * FROM student;
  • 39.  Graph databases use graph structures with nodes, edges and properties to represent data. In essence, data is modeled as a network of relationships between specie elements.  navigating social network connections, network topologies or supply chains.  Examples: Neo4j and Giraph.
  • 40.  https://kkovacs.eu/cassandra-vs- mongodb-vs-couchdb-vs-redis?  https://www.datastax.com/nosql- databases/benchmarks-cassandra-vs- mongodb-vs-hbase  https://db- engines.com/en/system/Cassandra%3B CouchDB%3BMongoDB  https://thehftguy.files.wordpress.com/20 17/03/nosql-flowchart.png