Graph Moderndatabase Report

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

c.

PostgreSQL
d. SQLite
Relational database vs NoSQL databases
e. Oracle

Some of the most common used RDBMS are listed below;


Abstract – The use of technology and its variety have been
growing enormously in recent years. Therefore, there has been
emerging technologies such as NoSQL technologies. SQL stands for
a. MongoDB
Structure Query Language (SQL) and NoSQL stands for Not Only b. Redis
SQL(NoSQL). NoSQL has been very popular as an alternative to
the traditional relational database especially when dealing with
c. Cassandra
large amount of data and information. Therefore, many big d. Apache CouchDB
companies such as Amazon, Google, Facebook, Twitter etc. are
already making use of NoSQL databases. Even though these NoSQL databases have been or are been used in
companies are using NoSQL database, it doesn’t necessarily mean
every company needs to use it or shift from traditional relational developing new systems and projects. As well some are
database. This is because a clear understanding of your data needs also totally forgetting and leaving relational database and
and your project is needed before jumping into using one of the
database types. Therefore, in this paper the difference between emerging to the new database of NoSQL database. It
rational database and NoSQL databases is discussed deeply. To seems the businesses and users of this new NoSQL
understand whether you want to choose relational database or
NoSQL database for your next project, it is needed to understand database don’t really understand why they are switching
how both database systems work and their differences, and their or emerging to NoSQL databases. This is happening
importances in your next web or other projects.
because the users think that this new NoSQL database is
Index Terms – Databases, Relational databases, NoSQL
an upgrade of the Relational database. But in reality is not
Databases. the case, as they two different kind of databases, with
their own characteristics, benefits and drawbacks. Some
are even going back to relational database after initially
I. INTRODUCTION switching to NoSQL databases, as they have noticed the
differences and the things they can’t do when they use to
Recently the emerging technology of NoSQL have
become more popular and used than relational database. use relational databases. Therefore, to make the right
NoSQL database means Not Only SQL, which means choices initially or to switch from one to another, users
database that doesn’t use the SQL language. Therefore, must consider the capabilities of both databases before
NoSQL databases are databases that are not based on the choosing one from another. Therefore, this paper will try
relational databases. SQL stands for Structure Query to explain both databases of their characteristics and
Language and NoSQL stands for Not Only SQL. A relational differences. This will give users much understanding of
database is a type of database that stores and provides the database they are going to choose for their data
access to data points that are related to one another. purposes when building web applications and projects.
(What is a relational database?, 2020). We can clearly see
the different approaches the two databases have when
dealing with data, from their definitions. More on their II. RELATIONAL DATABASES
differences and comparisons will be discussed on this This database was first introduced in 1960 replacing then
paper. The main reason for this research paper is to get an the existing file organization of data. After the
overview of the two types of databases and which type of introduction of this type of database. its popularity
database approach to use when dealing with our project increased and it is still widely used database till now.
when dealing with different data. There will be an Many companies and organisations are still using this
emphasise as well to which database might better or if approach of database in their data manipulation and
they are both equally important. gathering.
Some of the most common used RDBMS are listed below;

a. MySQL
b. Microsoft SQL Server
accordingly. But there are some companies and
II.I Characteristics of relational databases businesses who are just emerging or switching to this
database approach from traditional relational database,
Relational database generally works with relational without deep research or understanding it accordingly.
tables and assumptions. Therefore, these assumptions Below the different types of NoSQL type and the
actually make the relational database not the real characteristics of this database is discussed.
reflective of the real world. In relational or SQL
databases world we have restrictions of what we put in
a table as it is has clear structural schema. All the
III.I Types and characteristics of NoSQL databases
records must follow the predefined schema that we
have in the beginning of the data structured process of NoSQL databases can store lots and lots of data in an
the record. We store data, distributed across multiple efficient way. Unlike relational database, in this kind of
tables which we then connect with relations. Then we databases we have collections, documents to create the
can use SQL to query these relationships for different database for the data in hand.
outputs and queries.
The following types of NoSQL databases can used,
The following are some of the common features or depending on the data model we use;
characteristics of relational databases;
a. Key-value data model: Prepared as collection
• Strict schema of key-value pairs. E.g. Redis, DynamoDB, Riak
• Relation world etc.
• Restriction on data duplication: b. Column-oriented: They store data in a
• Normalised distributed data column. E.g. Cassandra, Apache Hbase,MapD
etc.
c. Document store: Allows the inserting,
Data model is used to structure the data in the database retrieving and manipulating of semi-
model and then links are created between the different structured data. E.g. XML, JSON, BSON etc.
d. Graph data stores: Where relationships are
entities in the database. The normalised distributed data
presented as graphs. E.g. Neo4j, Allegro
is the core advantage and strong characteristics of
Graph, Redis Graph etc.
relational database. As this normalised distributed data
can be then merged with SQL queries. Duplication is
minimised as well by using the Primary key of one table Some of the common features and characteristics of the
in another record as a Foreign key when creation NoSQL databases are discussed below.
relationships of different entities.
NoSQL has no schema or flexible schema, which allows
for flexibility and addition of data in the near future to
your database. There is also No relationships, so you put
III. NOSQL DATABASES all your collections in one place to process it later. As
NoSQL databases are the reflection of the real world there is less relation merging going on, this makes it
as it doesn’t have much assumptions and restrictions super and fast efficient querying. The downside or
like in as the relational database. NoSQL databases are disadvantage side of it is that it duplicates data, for
non-relational databases, which are new technologies example if you have employee name changed. You must
emerging among organizations and businesses in today’s change all the data in the different collections related to
world. Many companies are utilizing the benefit of this that employee name, as there are no relationships
database approach by implementing it very well and which makes it changeable in relational database.
IV. COMPARISON BETWEEN RELATIONAL DATABASES NoSQL:
AND NOSQL DATABASES
o NoSQL is Schema-less or has flexible schema. This
can be advantageous and disadvantageous. The
more flexible can be an advantage or can be
The main purpose of my research is to compare disadvantage as you can’t rely on the records you
Relational databases vs NoSQL databases. As well to have as there is no schema to give you a
come up if some of the characteristics have similarities guideline.
and commonality. This purpose or comparison can give o There is no or few relations. This is great for
reading and query a lot. But can be disadvantage
an insight to businesses or originations when dealing with
in a way when you have a lot of write request that
data and choosing which database to choose for that affect multiple collections, as you have to update
case. it simultaneously causing data duplications.
o In NoSQL data is typically merged, which serves
The differences and comparison are discussed below in a certain purposes than having lot of queries.
form of advantage and disadvantage and relating both o Both horizontal and vertical scaling is possible
database approaches accordingly. unlike in relational database.
o Great performance for mass read and write
Relational database/ SQL: requests. Except when you have to update a lot
which may slow the performance.
o The structural schema can really be an advantage
or disadvantage. If you want to be flexible it could
be disadvantage but an advantage if you want to Below is summary of the differences of both databases
have predictable structure or layout, which can Relational database and NoSQL databases.
minimise errors and data structure.
o The relations can be an advantage when updating Relational database (SQL) NoSQL databases
data, as you only update once at it is managed and
stored in one place unlike in NoSQL. But can be Data uses Schema No schema or schema-less
disadvantage when you do complex query, the
Have relations Few relations or No
performance can be slow as compared to NoSQL.
This is because you have to merge the relations
relationships manually when doing query unlike in
Distribution of data is Data is usually merged or
NoSQL.
across multiple tables nested in few collections
o Data is distributed across multiple tables. This can
be advantage or disadvantage as above as in Horizontal scaling is Horizontal scaling is possible
regarding updating.
impossible or very difficult
o At some point scaling can be hard. This is one of
the strong disadvantages, because vertical scaling Vertical scaling possible but Vertical scaling is possible
has limitation and horizontal scaling is impossible limitations
in relational database or SQL. Unlike in NoSQL
databases can be split horizontally as there is no There are limitations when Great performance lots read
relationship with the data. querying lots of read & & write queries
o There are limitations when dealing with lots or write queries per second
masses of read and write queries per second
request. Table 1. SQL VS NoSQL
V. CONCLUSIONS AND FUTURE RESEARCHES or applications. The research of my topic comes to
conclusion with future developments also considered in
accordance to both relational database and NoSQL
To conclude or to come up to which one is better or databases. Even though technology is emerging highly
more appropriate? There is no clear border as you can and evolving, there is always a better or efficient way to
use or build an application with either databases. Except deal with the current situation with old technologies and
when you grow big where you have to use both or traditional ways. It is always better and wise to do
databases. Mainly you have to think about your core research before using one of the technologies available,
strength and requirements. Whether you need clear in this case research relating you new project and the
schema, do you use a lot of relationships, do you work databases you want to use.
with data that changes frequently and is used on your
different part of applications, then in this case you need
relational database. As this allows you to manage your ACKNOWLEDGMENT
data as the above guidelines you thought of.
I thank the University of Greenwich for giving me the
knowledge and guidelines in order to conduct this
research paper. I would also, like to acknowledge Dr.
The NoSQL approach is great for application when you Tatiana the lecturer of this course for giving me the
need to write and read a lot. But not necessarily update required knowledge related to NoSQL data and general
regularly in your databases. As well when read and database. It really gave me the platform and the
display your data as quickly as possible without running encourage to conduct this research and paper.
complex join query. Also, where scaling is also a matter of
concern. Then you may be leaning to NoSQL DATABASE.
or better off choosing NoSQL DATABASE.

At the end NoSQL is more hyped and offers significant


advantages but is wrong to say is better that relational REFERENCES
database and also the other way around. At the end it [1] 2020. [online] Available at:
comes down to testing, playing around and simply <https://www.researchgate.net/publication/263272704_Relationa
l_Vs_NoSQL_databases_A_survey> [Accessed 25 March 2020].
choosing the tools and database for the right job in hand. [2] Hrpub.org. 2020. [online] Available at:
Therefore, we can’t say NoSQL is better than traditional <http://www.hrpub.org/download/20171130/CSIT1-
13510351.pdf> [Accessed 25 March 2020].
relational database or worst of using it. [3] Metadata-standards.org. 2020. [online] Available at:
<http://metadata-standards.org/Document-library/Documents-by-
Future researches can be conduct how to integrate both number/WG2-N1501-
N1550/WG2_N1537_SQL_Standard_and_NoSQL_Databases%
relational database and NoSQL database in order to
202011-05.pdf> [Accessed 25 March 2020].
optimize your data processing and gathering. Both have [4] DB, S., 2020. SQL Vs Nosql Database Differences Explained
strong features and they can be combined to create a With Few Example DB. [online] Thegeekstuff.com. Available at:
<https://www.thegeekstuff.com/2014/01/sql-vs-nosql-db/>
better and more efficient technology than we have [Accessed 25 March 2020].
currently. [5] GeeksforGeeks. 2020. Difference Between SQL And Nosql -
Geeksforgeeks. [online] Available at:
<https://www.geeksforgeeks.org/difference-between-sql-and-
In conclusion, there is no clear winner or better nosql/> [Accessed 25 March 2020].
database after all. It all depends on what kind of [6] Technologies, A., 2020. Difference Between SQL And Nosql
Database | What Is The Difference?. [online] Agira
database application you are building or data you are Technologies. Available at: <https://www.agiratech.com/the-
storing. For example, in a really big application or key-differences-between-sql-and-nosql-database/> [Accessed 25
March 2020].
projects, you use both as you work with different data
[7] Medium. 2020. The SQL Vs Nosql Difference: Mysql Vs Mongodb.
[online] Available at: <https://medium.com/xplenty- blog/the-sql-
vs-nosql-difference-mysql-vs-mongodb- 32c9980e67b2> [Accessed
25 March 2020].
[8] Oracle.com. 2020. What Is A Relational Database?. [online]
Available at: <https://www.oracle.com/uk/database/what-is-a-
relational-database/> [Accessed 25 March 2020].

You might also like