0% found this document useful (0 votes)
3 views

NoSQL Data Models.pptx

The document discusses various NoSQL data models, including Key-Value Stores, Wide-Column Stores, Graph Databases, and Document-Store Databases. Key-Value Stores allow schema-less data storage with unique keys and values, while Wide-Column Stores focus on column-oriented data for improved query performance. Graph Databases represent data as nodes and edges, facilitating complex relationships, and examples of each type of database are provided.

Uploaded by

mushaf671
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

NoSQL Data Models.pptx

The document discusses various NoSQL data models, including Key-Value Stores, Wide-Column Stores, Graph Databases, and Document-Store Databases. Key-Value Stores allow schema-less data storage with unique keys and values, while Wide-Column Stores focus on column-oriented data for improved query performance. Graph Databases represent data as nodes and edges, facilitating complex relationships, and examples of each type of database are provided.

Uploaded by

mushaf671
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

NoSQL Data Models

Key-Value Store
• Key-value stores are most basic types of NoSQL
databases.
• Designed to handle huge amounts of data.
• Based on Amazon’s Dynamo paper.
• Key value stores allow developer to store
schema-less data.
• In the key-value storage, database stores data as
hash table where each key is unique and the value
can be string, JSON, BLOB (Binary Large OBjec)
etc.
• A key may be strings, hashes, lists, sets, sorted
sets and values are stored against these keys.
Key-Value Store
• For example a key-value pair might consist of a key
like "Name" that is associated with a value like
"Robin".
• Key-Value stores can be used as collections,
dictionaries, associative arrays etc.
• Key-Value stores follow the 'Availability' and
'Partition' aspects of CAP theorem.
• Key-Values stores would work well for shopping
cart contents, or individual values like color
schemes, a landing page URI, or a default account
number.
• Example of Key-value store DataBase : Redis,
DynamoDB, Riak. etc.
Key-Value Store

{Key1:Value1 , Key2:Value2, Key3:Value3 , …… ,


KeyN:ValueN}
Key-Value Store

Lightning Fast!
Wide-Column Store
• Column-oriented databases primarily work on
columns and every column is treated
individually.
• Values of a single column are stored
contiguously.
• Column stores data in column specific files.
• In Column stores, query processors work on
columns too.
• All data within each column datafile have the
same type which makes it ideal for
compression.
Wide-Column Store
• Column stores can improve the performance
of queries as it can access specific column
data.
• High performance on aggregation queries (e.g.
COUNT, SUM, AVG, MIN, MAX).
• Works on data warehouses and business
intelligence, customer relationship
management (CRM), Library card catalogs etc.
• Example of Column-oriented databases
: BigTable, Hbase, Cassandra, SimpleDB etc.
Wide-Column Store
Wide-Column Store
Wide-Column Store
• A column family consists of multiple rows.
• Each row can contain a different number of
columns to the other rows. And the columns don’t
have to match the columns in the other rows (i.e.
they can have different column names, data types,
etc).
• Each column is contained to its row. It doesn’t
span all rows like in a relational database. Each
column contains a name/value pair, along with a
timestamp. Note that this example uses
Unix/Epoch time for the timestamp.
Wide-Column Store
Wide-Column Store
• Each Row Has:
• Row Key. Each row has a unique key, which is a
unique identifier for that row.
• Column. Each column contains a name, a value,
and timestamp.
• Name. This is the name of the name/value pair.
• Value. This is the value of the name/value pair.
• Timestamp. This provides the date and time that
the data was inserted. This can be used to
determine the most recent version of data.
Wide-Column Store
Graph Databases
• A graph database stores data in a graph.
• It is capable of elegantly representing any kind of
data in a highly accessible way.
• A graph database is a collection of nodes and
edges
• Each node represents an entity (such as a student
or business) and each edge represents a
connection or relationship between two nodes.
• Every node and edge are defined by a unique
identifier.
• Each node knows its adjacent nodes.
• As the number of nodes increases, the cost of a
local step (or hop) remains the same.
Graph Databases
Graph Databases
Document-Store Databases
Document-Store Databases
MongoDB
MongoDB
MongoDB
MongoDB
MongoDB

You might also like