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

Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
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
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
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.
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 

Kürzlich hochgeladen (20)

Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
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
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
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 ...
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 

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