EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 360+ Courses All in One Bundle
  • Login
Home Data Science Data Science Tutorials SQL Tutorial Types of NoSQL Databases
Secondary Sidebar
SQL Tutorial
  • NoSQL
    • NoSQL Databases List
    • NoSQL Data Modeling
    • Types of NoSQL Databases
    • NoSQL Injection
    • NoSQL vs SQL Databases
    • NoSQL Use Cases
    • NoSQL Key Value
  • Basic
    • What is SQL
    • Careers in SQL
    • Careers in SQL Server
    • IS SQL Microsoft?
    • SQL Management Tools
    • What is SQL Developer
    • Uses of SQL
    • How to Install SQL Server
    • What is SQL Server
    • SQL Quick References
    • SQL Like Wildcard
    • SQL Like with Multiple Values
    • SQL Examples
    • SQL Server Versions
    • SQL DROP DB
    • SQL Case Insensitive
    • SQL Expressions
    • Database in SQL
    • SQL Data Types
    • SQL Keywords
    • Composite Key in SQL
    • SQL WAITFOR
    • SQL Constraints
    • Transactions in SQL
    • First Normal Form
    • SQL Server Data Types
    • SQL Administration
    • SQL Variables
    • SQL Enum
    • SQL GROUP BY WHERE
    • SQL ROW
    • SQL EXECUTE
    • SQL EXCLUDE
    • SQL Performance Tuning
    • SQL UUID
    • Begin SQL
    • SQL Update Join
    • SQL Between Dates
    • Cheat sheet SQL
  • Operators
    • SQL Operators
    • SQL Arithmetic Operators
    • SQL Logical Operators
    • SQL String Operators
    • Ternary Operator in SQL
  • Commands
    • SQL Commands
    • sqlplus set commands
    • SQL Alter Command
    • SQL Commands Update
    • SQL DML Commands
    • SQL DDL Commands
    • FETCH in SQL
  • Clause
    • SQL Clauses
    • SQL IN Operator
    • SQL SELECT DISTINCT Multiple Columns
    • SQL Null Values
    • SQL LIKE
    • SQL LIKE Query
    • SQL LIKE Operator
    • SQL LIKE Clause
    • SQL NOT Operator
    • SQL Minus
    • SQL WHERE Clause
    • SQL with Clause
    • SQL HAVING Clause
    • SQL HAVING Clause
    • SQL GROUP BY DAY
    • ORDER BY Clause in SQL
    • SQL ORDER BY CASE
    • SQL ORDER BY DESC
    • SQL ORDER BY DATE
    • SQL ORDER BY Alphabetical
    • SQL ORDER BY Ascending
    • SQL Order by Count
    • SQL GROUP BY Month
    • SQL GROUP BY Multiple Columns
    • SQL GROUPING SETS
  • Queries
    • SQL Insert Query
    • SQL SELECT Query
    • SQL SELECT RANDOM
    • SQL Except Select
    • SQL Subquery
    • SQL SELECT DISTINCT
    • SQL WITH AS Statement
  • Keys
    • SQL Keys
    • SQL Foreign Key
    • Primary Key in SQL
    • Foreign Key in SQL
    • Unique Key in SQL
    • SQL UNIQUE Constraint
    • SQL Primary Key
    • Alternate Key in SQL
    • SQL Super Key
  • Functions
    • SQL Date Function
    • SQL Server Functions
    • SQL String Functions
    • SQL Compare String
    • Timestamp to Date in SQL
    • SQL REGEX
    • SQL Window Functions
    • SQL Syntax
    • SQL CONCAT
    • SQL ALTER TABLE
    • SQL MOD()
    • SQL Timestamp
    • SQL Min and Max
    • SQL TO_DATE()
    • SQL DATEADD()
    • SQL DATEDIFF()
    • SQL HOUR()
    • SQLite? functions
    • ANY in SQL
    • LIKE Query in SQL
    • SQL NOT NULL
    • SQL NOT IN
    • SQL MAX()
    • SQL MIN()
    • SQL SUM()
    • SQL COUNT
    • SQL identity
    • SQL DELETE Trigger
    • SQL Declare Variable
    • SQL Text Search
    • SQL COUNT DISTINCT
    • SQL TEXT
    • SQL Limit Order By
    • BETWEEN in SQL
    • LTRIM() in SQL
    • TOP in SQL
    • SQL Select Top
    • Merge SQL
    • SQL TRUNCATE()
    • SQL UNION
    • SQL ALL
    • SQL INTERSECT
    • SQL Alias
    • SQL Server Substring
    • CUBE in SQL
    • SQL RANK()
    • SQL CTE
    • SQL LAG()
    • SQL MID
    • SQL avg()
    • SQL WEEK
    • SQL DELETE
    • SQL DATEPART()
    • SQL DECODE()
    • SQL DENSE_RANK()
    • SQL NTILE()
    • SQL NULLIF()
    • SQL Stuff
    • SQL Ceiling
    • SQL EXISTS
    • SQL LEAD()
    • SQL COALESCE
    • SQL BLOB
    • SQL ROW_NUMBER
    • SQL Server Replace
    • SQL Ranking Function
    • SQL Server Permission
  • T-SQL
    • T-SQL pivot
    • T-SQL Formatter
    • T-SQL TRY CATCH
    • T-SQL CTE
    • T-SQL CASE
    • T-SQL DATEPART
    • T-SQL Date Format
    • T-SQL ROUND
    • T-SQL Loop
    • T-SQL IIF
    • T-SQL Union
    • T-SQL CREATE TABLE
    • T-SQL INSERT
    • T-SQL Stuff
    • T-SQL ISNULL
    • T-SQL ADD Column
    • T-SQL DATEDIFF
  • Joins
    • Join Query in SQL
    • Types of Joins in SQL
    • Types of Joins in SQL Server
    • SQL Inner Join
    • SQL Join Two Tables
    • SQL Delete Join
    • SQL Left Join
    • LEFT OUTER JOIN in SQL
    • SQL Right Join
    • SQL Cross Join
    • SQL Outer Join
    • SQL Full Join
    • SQL Self Join
    • Natural Join SQL
    • SQL Multiple Join
  • Advanced
    • MDF File in SQL Server
    • SQL Aliases
    • SQL Hosting
    • SQL Auto Increment
    • SQL Injection
    • SQL Wildcards
    • SQL Check
    • SQL Indexes
    • Select Distinct
    • SQL BETWEEN
    • SQLPlus spool
    • SQL Create Table
    • SQL Schema
    • Comparison Operators in SQL
    • SQL_plus
    • SQL Formatter
    • SQL LEFT INNER JOIN
    • SQL Plus Command
    • SQLPlus not found
    • SQL Injection Attack
    • Aggregate Functions in SQL
    • SQL REVOKE
    • SQL Select Distinct Count
    • IF ELSE Statement in SQL
    • SQL CASE Statement
    • SQL While Loop
    • SQL BIGINT
    • SQL Crosstab
    • SQL Wildcard Character
    • SQL INSTR()
    • SQL now
    • SQL synonyms
    • SQLite?export to csv
    • What is Procedure in SQL
    • Stored Procedure in SQL?
    • SQL Server Constraints
    • SQL DELETE ROW
    • Column in SQL
    • Table in SQL
    • SQL Virtual Table
    • SQL Merge Two Tables
    • SQL Table Partitioning
    • SQL Temporary Table
    • SQL Clone Table
    • SQL Rename Table
    • SQL LOCK TABLE
    • SQL Clear Table
    • SQL DESCRIBE TABLE
    • SQL Mapping
    • Cursors in SQL
    • AND in SQL
    • Wildcard in SQL
    • SQL FETCH NEXT
    • SQL Views
    • SQL Delete View
    • Triggers in SQL
    • SQL UPDATE Trigger
    • SQL AFTER UPDATE Trigger
    • SQL Update Statement
    • SQL DROP TRIGGER
    • SQL DROP Table
    • Types of SQL Views
    • SQL Port
    • SQL Clustered Index
    • SQL COMMIT
    • Distinct Keyword in SQL
    • PARTITION BY in SQL
    • SQL Set Operators
    • SQL UNION ALL
    • Metadata in SQL
    • SQL Bulk Insert
    • Array in SQL
    • SQL REGEXP
    • JSON in SQL
    • SQL For loop
    • EXPLAIN in SQL
    • ROLLUP in SQL
    • Escape Character SQL
    • SQL Cluster
    • SQL Backup
    • SQL Pattern Matching
    • SQL Users
    • ISNULL SQL Server
    • SQL pivot
    • SQL Import CSV
    • SQL if then else
    • SQL ignore-case
    • SQL Matches
    • SQL Search String
    • SQL Column Alias
    • SQL extensions
    • SQL Substring Function
    • Charindex SQL
  • SqlAlchemy
    • What is SQLAlchemy
    • SqlAlchemy ORM
    • SQLAlchemy count
    • SQLAlchemy update object
    • SQLAlchemy pip
    • SQLAlchemy Connection
    • SQLAlchemy Transaction
    • SQLAlchemy Metadata
    • SQLAlchemy Raw SQL
    • SQLAlchemy Filter in List
    • SQLAlchemy Alias
    • SQLAlchemy unique
    • SQLAlchemy JSONB
    • SQLAlchemy Async
    • SQLAlchemy Types
    • SQLAlchemy Many to Many
    • SQLAlchemy Example
    • SQLAlchemy Model
    • SQLAlchemy Data Types
    • SQLAlchemy Filter
    • SQLAlchemy SQLite
    • SQLAlchemy DateTime
    • SQLAlchemy create_engine
    • SQLAlchemy Delete
    • SQLAlchemy Migrations
  • Interview Questions
    • SQL Interview Questions
    • Advance SQL Interview Questions
    • SQL Joins Interview Questions
    • SQL Server Interview Questions
    • SQL Current Month

Types of NoSQL Databases

By Sohel SayyadSohel Sayyad

Types of NoSQL Databases

Introduction to Types of NoSQL Databases

  • NoSQL is a non-relational database management system, which does not need to have a fixed schema.
  • NoSQL database system contains various database technologies that can manage structured, unstructured, semi-structured and polymorphic data.
  • We must use the relevant database to solve a specific set of problems as there are various solutions that are better than all of the others.

Different Types of NoSQL Databases

To understand the NoSQL database, let’s go through the following types,

1. Key-Value Stores

  • Based on distributed hash tables and Amazon’s Dynamo paper.
  • Created to handle massive amounts of data and store schema-free data.
  • Data insertion and retrieval are simple.
  • Stores data as a hash table where all keys are unique and the value can be a string, JSON, BLOB, etc.
  • Values can be stored against strings, lists, hashes sets and sorted sets as a key.
  • Collections, associative arrays, and dictionaries, etc. can be used as key-value stores.

Examples:

Start Your Free Data Science Course

Hadoop, Data Science, Statistics & others

  • Redis
  • Memcached

Use Cases:

  • Key-value data stores are ideal for storing session information, user profiles, comments, and recommendations of products.
  • Redis:
    • Pinterest uses to store lists of images, galleries, users, boards, followers, and un-followers.
    • Coinbase uses to authorize rate points and assurance the rightness of the Bitcoin transactions.
    • Twitter uses to manage the Twitter timeline.
  • Memcached:
    • Quora uses to maintain the cache of moderate, determined databases.

2. Document Stores

  • It is a collection of documents and a document is a collection of key-value type. All values or the data stored in documents can be accessed using the keys.
  • All documents are independent of each other.
  • Documents are schema-free and therefore are flexible and easy to modify.
  • Collections are used to store documents in order to group different kinds of data.
  • Documents may have nested documents, various different key-value pairs, or key-array pairs.

Examples of Document Databases:

  • MongoDB
  • Couchbase
  • RavenDB

Use Cases:

  • MongoDB:
    • SEGA uses for managing game accounts.
    • Aer Lingus uses to handle ticket management and internal applications.
    • ly and Sourceforge use to manage data.
  • Couchbase:
    • Cisco used to achieve greater scalability.

3. Column-Oriented

  • The databases came into the picture after Google’s research on the Google file system named BigTable distributed storage system.
  • Column-oriented databases basically designed to work on columns, every column is treated separately. All values are stored contiguously for each column.
  • Column-oriented databases stores data in column specific files with the same type.
  • In column-oriented databases, query processors operate on columns, it improves query performance as it can access specific column data. Also, it gives a performance on aggregation queries.
  • All data associated with the single column is ideal for compression because of the same type.
  • Column-oriented databases are designed like arrays with three-dimensional, the row identifier is the first dimension, a combination of a column identifier with family is the second and the timestamp is third.

Examples of Column Databases:

  • Apache Cassandra
  • Hadoop HBase
  • HyperTable

Use Cases:

  • The column-oriented database gives a highly scalable architecture. and high performance as they are fast for insertion and retrieval, They have been very popular among organizations working on internet of things, big data, and personalized content recommendations.
  • Cassandra:
    • Outbrain uses to serve personalized content recommendations.
    • Spotify uses to store metadata about artists, songs, etc. and user profile parameters for better personalization.
  • HBase:
    • Facebook used for various services like search indexing and the “Nearby Friends” feature.

4. Graph Network

  • Graph network database stores data in a graph like structure.
  • Graph databases used for storing frequently changing data.
  • Graph databases are capable of representing any kind of data. It provides high accessibility as it uses indexes for lookups.
  • A graph database is a collection of one or more nodes and edges.
  • Each node represents an entity (such as a student or business) and each edge connects two nodes that show the relationship between them.
  • A unique identifier is used to define every node and edge and aware of its adjacent nodes.
  • The graph can be traversed in a depth-first or breadth-first fashion.starting from any arbitrary or start node.

Example of graph databases:

  • FlockDB
  • HyperGraphDB
  • Neo4j

Use Cases:

  • Graph databases are getting used when dealing with large datasets for establishing data relationships.
  • Graph databases offer fast query performance than relational databases, especially as data grows.
  • Neo4j:
    • Walmart uses to provide relevant product promotions and recommendations.
    • Medium uses it to build its social network to improve content personalization.
    • Cisco uses to analyze customer support issues to anticipate bugs.

5. Hierarchical

  • Uses parent-child relationships or tree structures to store data.
  • In relational models, this is referred to as a one-to-many.
  • Location information is stored in Geospatial databases in the hierarchical.

Examples of Hierarchical Database:

  • PostGIS
  • Oracle
  • Spatial

Use Case:

  • Microsoft’s Windows registry and IBM’s IMS database are the best examples of hierarchical

6. Object-Oriented

  • These databases are fully NoSQL databases is a debatable topic yet. These databases are not similar to data models based on traditional RDBMS.
  • Allows the storage of data in the form of objects.

Examples of Object-Oriented Database:

  • db4o
  • NEO
  • Versant

Use Case:

  • Object-oriented databases are generally used in web-scale production or research purposes.

7. Triple Stores

  • Triple stores manage the data in the form of Subject-Predicate-Object.
  • The predicate is used for linking subject and object.
  • Triple Scores are a variety of network databases.

Examples of Triple Store Database:

  • Sesame
  • Jena
  • Virtuoso
  • Allegro Graph

Use Case:

  • Example: ‘Adam writes eduCBA blog.’ Here, Adam is the subject, while eduCBA blog is the object, here the predicate is the term ‘writes’ which links the subject and the object. In such scenarios, NoSQL is the best option as mapping it into SQL queries is quite difficult.

Conclusion

  • Seven types of NoSQL Database are Key-value stores, Document stores, Column-oriented, Graph Network, Hierarchical, Object-oriented and Triple Stores, etc.
  • We hope this guide helps you get an idea of which NoSQL database type to choose for your application or project. More supported data models within one database mean more versatility for you and to the end-user, in the way you should store your data.

Recommended Articles

This is a guide to Types of NoSQL Databases. Here we discuss the introduction and top 7 types of NoSQL Databases along with the examples and its use cases. You may also look at the following articles to learn more-

  1. Is Cassandra NoSQL?
  2. Cursor Actions in MySQL
  3. Examples to Implement MySQL BETWEEN
  4. Top 11 Alternatives of Redis with its Features
  5. Guide to Advantages of Bitcoin
Popular Course in this category
All in One Data Science Bundle (360+ Courses, 50+ projects)
  360+ Online Courses |  1500+ Hours |  Verifiable Certificates |  Lifetime Access
4.7
Price

View Course

Related Courses

JDBC Training (6 Courses, 7+ Projects)4.9
PHP Training (5 Courses, 3 Project)4.8
Windows 10 Training (4 Courses, 4+ Projects)4.7
SQL Training Program (10 Courses, 8+ Projects)4.7
PL SQL Training (4 Courses, 2+ Projects)4.7
Oracle Training (17 Courses, 8+ Projects)4.7
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Database Management
  • Machine Learning
  • All Tutorials
Certification Courses
  • All Courses
  • Data Science Course - All in One Bundle
  • Machine Learning Course
  • Hadoop Certification Training
  • Cloud Computing Training Course
  • R Programming Course
  • AWS Training Course
  • SAS Training Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2023 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more