0% found this document useful (0 votes)
5 views7 pages

mongoodb

NoSQL databases are categorized into four types: document databases, key-value stores, column-family stores, and graph databases, each optimized for different data structures and query methods. They are suitable for scenarios involving large volumes of unstructured or semi-structured data, where relationships between data are less critical, and the data is subject to frequent changes. NoSQL is ideal for applications requiring scalability and flexibility in data storage and retrieval.

Uploaded by

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

mongoodb

NoSQL databases are categorized into four types: document databases, key-value stores, column-family stores, and graph databases, each optimized for different data structures and query methods. They are suitable for scenarios involving large volumes of unstructured or semi-structured data, where relationships between data are less critical, and the data is subject to frequent changes. NoSQL is ideal for applications requiring scalability and flexibility in data storage and retrieval.

Uploaded by

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

store large volumes of unstructured and semi-structured data.

NoSQL databases are generally classified into four main categories:

1. Document databases: These databases store data as semi-structured documents, such as JSON or XML, and can
be queried using document-oriented query languages. Examples of document databases are MongoDB and
Couchbase

"_id": "12345",

"name": "foo bar",


"email": "[email protected]",

"address": {

"street": "123 foo street",

"city": "some city",

"state": "some state",

"zip": "123456"

},

2. Key-value stores: These databases store data as key-value pairs, and are optimized for simple and fast read/write
operations. Examples are Amazon DynamoDB and Redis.

Key: user:12345

Value: {"name": "foo bar", "email": "[email protected]", "designation": "software developer"}

3. Column-family stores: These databases store data as column families, which are sets of columns that are treated
as a single entity. They are optimized for fast and efficient querying of large amounts of data.( wide-column
stores are flexible, where different rows can have different sets of columns.) examples of wide-column stores are
Apache Cassandra and HBase.

name id email dob city

Foo bar 12345 [email protected] Some city

Carn Yale 34521 [email protected] 12-05-1972

4. Graph databases: These databases store data as nodes and edges, and are designed to handle complex
relationships between data. Examples of graph databases are Neo4J and Amazon Neptune.
1. Graph Databases: Examples – Amazon Neptune, Neo4j

2. Key value store: Examples – Memcached, Redis, Coherence

3. Column: Examples – Hbase, Big Table, Accumulo

4. Document-based: Examples – MongoDB, CouchDB, Cloudant

When should NoSQL be used:

1. When a huge amount of data needs to be stored and retrieved.

2. The relationship between the data you store is not that important

3. The data changes over time and is not structured.

4. Support of Constraints and Joins is not required at the database level

5. The data is growing continuously and you need to scale the database regularly to handle the data.

You might also like