top of page

What are the different types of Database

Updated: Mar 27, 2023

A database is an organized collection of structured information or data stored in computer system. The Data can easily be accessed, managed, modified, updated, controlled and organized. And Database is usually controlled by Database Management System (DBMS).


Types of Database:

There are different types of database. The database for specific organization depends on how the organization intents to use the data.


Relational Database

This database is based on relational data model which stores data in the form of rows and columns and together forms a table. Each table in database carries a key that make the data unique from others. A relational database use SQL to Store, Manipulate and Maintain the data.



Advantages:

  1. High speed because of its ease and simplicity.

  2. Tables are protected with username and password which is only authorized by users.

  3. Free from query processing and complex structuring.

  4. Database does not require any specific path for accessing the data.

  5. Relational Database uses primary leys and foreign keys to make the tables interrelated to each other.

  6. Multiple users can access relational database at the same time.


Disadvantages:

  1. Relational database is expensive.

  2. Performance of Relational Database depends on number of tables. If there are more tables, the response given to queries will be slower.

  3. Relational database require more physical memory for storage because if its rows and columns.

  4. When the amount of data is increased, its complexity increases.

  5. Large organizations tends to use more number of number of database systems with more tables. These information can be used to be transferred from one system to another. This could pose a risk of data loss.




Object-Oriented Database

This types of database is used for object-based data model approach for storing data in database system. The data is represented and stored as objects which are similar to objects used in object oriented programming language.



Advantages:

  1. Complex data sets can be saved and retrieved quickly and easily

  2. Objects IDs are assigned automatically

  3. Works well with Object-Oriented Programming Languages.


Disadvantages:

  1. Object databases are not widely adopted

  2. In some situation, the high complexity can cause performance problems.



Distributed Database

In this, Data is distributed among different database system of an organization. These database systems are connected via communication links. These links help end users to access the data easily.




Distributed Database is further divided into two:

Homogenous Database: Those database systems which execute on the same operating system and use the same application process and carry the same hardware devices.


Heterogenous Database: Those database systems which execute on different operating systems under different application procedures, and carries different hardware devices.


Advantages:

  1. The system can be expanded including new computers and connecting them to distributed system.

  2. One server failure will not affect the entire data set.

  3. It is cheaper to create a network of systems containing a part of the database.

  4. The database can be stored according to the departmental information in an organisation.


Disadvantages:

  1. The distributed database is quite complex and it is difficult to make sure that a user gets a uniform view of the database because it is spread across multiple locations.

  2. This database is more expensive as it is complex and hence, difficult to maintain.

  3. It is difficult to provide security in a distributed database as the database needs to be secured at all the locations it is stored.


NoSQL Database:

This type of database is used to store wide range of data sets. This stores the data in tabular (tables) form in several different ways. These are used to for building increased modern applications.



NoSQL Database is divided into 4 types:

  1. Key-value storage: It is the simplest type of database storage where it stores every single item as a key (or attribute name) holding its value, together.

  2. Document-oriented Database: A type of database used to store data as JSON-like document. It helps developers in storing data by using the same document-model format as used in the application code.

  3. Graph Databases: It is used for storing vast amounts of data in a graph-like structure. Most commonly, social networking websites use the graph database.

  4. Wide-column stores: It is similar to the data represented in relational databases. Here, data is stored in large columns together, instead of storing in rows.


Advantages:

  1. It enables good productivity in the application development as it is not required to store data in a structured format.

  2. It is a better option for managing and handling large data sets.

  3. It provides high scalability.

  4. Users can quickly access data from the database through key-value


Disadvantages:

  1. Though the NoSQL has been expanding at an unbelievable pace, the community support is relatively less as its new.

  2. It lacks a standardized platform like SQL, which is preventing it from further expanding. This has been creating concerns during migration. Standardization is what helps the database industry to unify.

  3. Interfaces and interoperability is another concern that is faced by NoSQL, which needs fixing immediately.




Graph Database

Graph databases are a type of NoSQL database that are based on graph theory. Graph-Oriented Database Management Systems (DBMS) software is designed to identify and work with the connections between data points. Therefore graph databases are often used to analyze the relationships between heterogeneous data points, such as in fraud prevention or for mining data about customers from social media.



Advantages:

  1. Query speed only dependent on the number of concrete relationships, and not on the amount of data

  2. Results in real time

  3. Clear and manageable representation of relationships

  4. Flexible and agile structures


Disadvantages:

  1. Difficult to scale, as designed as one-tier architecture

  2. No uniform query language



Open-Source Database

An open source database allows users to create a system based on their unique requirements and business needs. It is free and can also be shared. The source code can be modified to match any user preference. Open source databases address the need to analyze data from a growing number of new applications at lower cost.



The most common open source databases include:

  • Key-value databases — Store key and value data in memory for speedy lookup.

  • Document databases — Store document information.

  • Wide-column store databases — Similar to key-value with a large number of columns. They are well suited for analyzing huge data sets.


Advantages:

  1. Low cost

  2. It attracts talent who are drawn to the idea of sharable and communitive code.

  3. The collaborative nature of open source facilitates learning and adapting to new programming languages.

  4. The sheer number of developers trying to improve the software by creating many functionalities not found in their closed source equivalent.


Cloud Database

This type of database is stored in virtual environment and execute over the cloud computing platform. It provide users with various cloud computing services (SAAS, PAAS, IAAS). for accessing the database.



Below are some of the examples of cloud database/platform:

  • Amazon Web Services

  • Microsoft Azure

  • Google Cloud SQL etc.


Advantages:

  1. The cost of adopting cloud database is less than expanding on on-site server capability.

  2. Cloud Database are efficient as they have no inherent restrictions on their ability to expand.

  3. The ability of cloud platforms are accessed and used from a range of remote devices can be a huge advantage.

  4. Cloud Database offers reliable platform for application development.

  5. Offers security to the database.


Disadvantages:

  1. Difficult to move infrastructure to different cloud service.

  2. The initial cost is low but the service needs to grows and costs can rise.

  3. Hosting sensitive information online always generates the possibility of a data breach, but the risks can be mitigated, by following best practices and with a detailed cloud security policy communicated to all application developers.



Multi - Model Database

A multi-model database is a management system that combines multiple database types with a single backend. Most database management systems support only a single database model. On the other hand, multi-model databases store, query, and index data from different models. Multi-model databases provide the modeling advantages of polyglot persistence without having to find ways to combine different models. The flexible approach allows storing data in different ways. The result is:

  • Agile and flexible programming.

  • Reduced data redundancy.



Advantages:

  1. Inter-model data consistency due to a single backend.

  2. Different data types on one platform provides an agile environment.

  3. Fault-tolerant due to ACID compliance.

  4. Suitable for complex projects which require multiple views of data.


Disadvantages:

  1. Multi-model database systems are challenging to work with and complicated.

  2. The database model is still developing and has not matured properly.

  3. There is limited availability of different modeling techniques.

  4. Not suitable for simpler systems or projects.


Document Database

Document databases, also known as document stores, use JSON-like documents to model data instead of rows and columns. Sometimes referred to as document-oriented databases, document databases are designed to store and manage document-oriented information, also referred to as semi-structured data. Document databases are simple and scalable, making them useful for mobile apps that need fast iterations.



Advantages:

  1. Everything is available in single database rather than having information spread across several linked database.

  2. Document-store is flexible.

  3. Can store massive amounts of data with relatively no issues.


Disadvantages:

  1. Sometimes it is hard to find specific information without deep dives.

  2. Because of use of single node and incorrect configuration due to lack of familiarity, there is the possibility of data loss.





The Tech Platform

0 comments
bottom of page