No SQL
No SQL
Submitted To : Submitted By :
Mr. Aarvender Sharma Dileep Singh
IMS (1900360149021)
CONTENT
Introduction
What is NoSQL
Why NoSQL
Feature
Type of NoSQL
What is the CAP theorem
Advantage of NoSQL
INTRODUCTION
NoSQL is an approach to database design that can accommodate a wide variety of
data models, including key-value, document, columnar and graph formats.
NoSQL, known as Not only SQL database, provides a mechanism for storage and
retrieval of data and is the next generation database .
The system response time becomes slow when you use RDBMS for massive volumes of data.
To resolve this problem, we could "scale up" our systems by upgrading our existing hardware.
This process is expensive.
The alternative for this issue is to distribute database load on multiple hosts whenever the load
increases. This method is known as "scaling out."
Feature of NoSQL
Non-relational
Distributed
Column-oriented Graph.
Graphs based.
Document-oriented
Key Value Pair Based
Data is stored in key/value pairs. It is designed in such a way to handle lots of data and
heavy load.
Key-value pair storage databases store data as a hash table where each key is unique, and
the value can be a JSON, BLOB(Binary Large Objects), string, etc.
This kind of NoSQL database is used as a collection, dictionaries, associative arrays, etc.
Key value stores help the developer to store schema-less data. They work best for shopping
cart contents.
Column-based
Column-oriented databases work on columns and are based on BigTable paper by Google.
Every column is treated separately. Values of single column databases are stored
contiguously.
Column-based NoSQL databases are widely used to manage data warehouses, business
intelligence, CRM, Library card catalogs,
HBase, Cassandra, HBase, Hypertable are examples of column based database.
Graph-Based
A graph type database stores entities as well the relations amongst those entities. The entity
is stored as a node with the relationship as edges. An edge gives a relationship between
nodes. Every node and edge has a unique identifier.
A graph type database stores entities as well the relations amongst those entities. The entity
is stored as a node with the relationship as edges. An edge gives a relationship between
nodes. Every node and edge has a unique identifier.
Neo4J, Infinite Graph, OrientDB, FlockDB are some popular graph-based databases.
Document-Oriented
Document-Oriented NoSQL DB stores and retrieves data as a key value pair but the value
part is stored as a document. The document is stored in JSON or XML formats. The value
is understood by the DB and can be queried.
The document type is mostly used for CMS systems, blogging platforms, real-time
analytics & e-commerce applications. It should not use for complex transactions which
require multiple operations or queries against varying aggregate structures.
What is the CAP theorem
Consistency.
Availability.
Partition Tolerance
Consistency :
Availability :
Partition Tolerance :