A Survey and Comparison of Relational and Non-Relational Database

A Survey and Comparison of Relational and Non-Relational Database

International Journal of Engineering Research & Technology (IJERT) ISSN: 2278-0181 Vol. 1 Issue 6, August - 2012 A Survey and Comparison of Relational and Non-Relational Database Nishtha Jatana1 Sahil Puri2 Mehak Ahuja3 Ishita Kathuria4 Dishant Gosain5 1Assistant professor, Department of Computer Science and Engineering, Maharaja Surajmal Institute of Technology, New Delhi, India 2,3,4,5 Student, Department of Computer Science and Engineering, Maharaja Surajmal Institute of Technology, New Delhi, India Abstract Information within multiple tables can be co- related. The reliability of database model is checked with the help We report the comparison between the two leading type of of ACID properties. Database storage components prevailing in the industry. Atomicity stands for ‘everything or nothing’. If any The Database is largely concerned with managing massive part of the transaction is left incomplete then the amount of data in a consistent, stable, repeatable and quick entire transaction is considered failed. manner. The prominent features of both relational as well Consistency ensures that a database before and after as non relational databases have been specified which form any transaction is stable at a valid state. the basis of the comparison between the two types of Isolation ensures that multiple transactions database. The relational model is based on mathematical executing at the same time do not affect one theory(set theory, relational theory) whereas the non- another's execution. Thus, requiring the relational databases may or may not have a single concurrent transactions to be serialized. groundwork mathematical theory. Relational model is Durability ensures that once a transaction has been beneficial when it comes to reliability, flexibility, committed it will remain in the same state i.e. robustness, scalability requirements but in order to cater to stored permanently even if there are some errors, the needs of modern applications where the data is huge or even if the system crash or power loss occurs. and generally unstructured; Non-relational databases show true signs of usability here. Based on the characteristics, When the set of data items are organized with the help of commonly used tools of relational and non relational formally described tables the database formed is known as databases are mentioned along with brief introduction of relational database. It can easily be accessed, created and the tools. Comparison has been done between the tools to extended. Because of this reason it is a predominant choice notify the distinctive features of tools of relational and non of storing data over hierarchical model or network model. relational database. Conclusive remarks about the two categories of database have been mentioned. On the other hand, when traditional tables are not used to store data, it is known as non- relational database. These databases may store the data in the form of key- value 1. INTRODUCTION stores, XML format, multidimensional databases and so on. Non- relational databases, also commonly known as Our research comprises of studying various relational and NOSQL(Not Only SQL), provide elastic scaling meaning non-relational databases for storing and retrieval of large that they scale up transparently by adding a new node, and amount of data. The attributes and features of both are they are usually designed with low-cost hardware in listed in the following columns. mind. The other advantages that come packaged with non Database is a collection of large volumes of data. Database relational databases are: schema-free, easy replication Management System is an organized way of managing, support, simple API, eventually consistent / BASE (not retrieving and storing the data. The few actions that can be ACID), a huge amount of data and more. performed on database over any other storing mechanism are as follows: This paper is organized as follows.Section2 consists of a Perform complex calculations general overview of relational database system. Section 3 Retrieve records on the basis of matching or elaborates on a non-relational databases .Finally the results comparing functions of the survey and comparison are discussed in section 4. Update bulk records at an instance. www.ijert.org 1 International Journal of Engineering Research & Technology (IJERT) ISSN: 2278-0181 Vol. 1 Issue 6, August - 2012 2. RELATIONAL DATABASE Oracle has large tablespace, role management, snapshots, packages and synonyms unlike MySQL. 2.1 Overview of Relational Database Model The syntax of Oracle is high flexible. It provides E.F Codd invented the relational database in 1970. A integrated programming language like PL/SQL. It database is an application that allows storing and retrieving also has broader command structure as compared data very rapidly. A relational database is a collection of to MySQL. data items organized in formally-described tables from The security of Oracle is very tight and bounded. which data can be accessed or reassembled in many MySQL provides three security parameters like different ways. Relational Database is a set of tables username, password and location whereas Oracle referred to as relation with data category described in provides advance security enhancements by columns similar to spreadsheets. Each row contains a creating profiles, local authentication and external unique instance of data for the corresponding data authentication. category. While creating a relational database domain of Oracle is case insensitive but MySQL is case possible values along with constrains are applied to the sensitive when it comes to database and table data. It is the relation between the tables that makes it a names. ‘relation’ table. They require few assumptions about how For data transfer Oracle uses XML but this data will be extracted from the database. As a result, the language is not supported by MySQL. same database can be viewed in many different ways. MySQL has CHAR and VARCHAR for character Mostly all the relational databases use Structured Query types on the contrary Oracle has four character Language (SQL) to access and modify the data stored in types namely CHAR, NCHAR, VARCHAR2, and the database. Originally it was based upon relational NVARCHAR2 all types need to be minimum of 1 calculus and relational algebra and is subdivided into byte long. elements such as clauses, predicates, queries and Oracle is a highly extensive database system that statements. supports advanced functionality like Active Data Some of the benefits of the database designed according to Guard, Audit Vault, Partitioning and Data Mining. the relational model are: MySQL does not support Audit Vault on the Most of the information is stored in the database server. and not in the application, so the database is self Temporary tables are handled differently by Oracle documenting. and MySQL. In MySQL the tables are dropped It is easy to add, update or delete data. automatically after the current session ends and It gives benefits of data summarization, retrieval are visible only to the current user session but in and reporting. case of Oracle the tables have to be explicitly The database is structured in a tabular form with dropped. The tables are visisble to all the sessions highly related tables; the nature of the database is but the data inside is visible only to the current predictable. user session. Also, any changes required to make in the schema MySQL has backup utilities like mysqldump and of the database is quite simple. mysqlhotcopy. Oracle has Recovery Manager (RMAN) whaich is the most important backup 2.2. Tools of Relational Database utility. Using this backup scheduling can be The two most extensively used relational databases are automated using a very few commands and MySQL and Oracle. MySQL is more popular with the scripts. websites. It is a light weight system which is extremely fast Oracle has tons of features starting from user defined but Oracle is majorly used in case of large database data types to database management tools extending requirement like Banking, Insurance, ERP and finance upto XML. Because of its high functionality it has companies. It is used to solve complex problems and reduced the need of any third party software or tool. It supports large OLTP environments. supports large business application. Though they majorly work in a similar fashion yet there MySQL is used in case of high speed web and gaming. are a few differences between them. It supports small sized data warehouse and OLTP Oracle is a high cost system that can be afforded systems so it can be used in small projects in smaller only by large organizations unlike MySQL which companies at low cost. However it requires third party is open source database. But MySQL lacks on add softwares and lacks the robust functionality provided on facilities and robustness supported by Oracle. by Oracle. www.ijert.org 2 International Journal of Engineering Research & Technology (IJERT) ISSN: 2278-0181 Vol. 1 Issue 6, August - 2012 2.2. Shortcomings of Relational Database 2. Document Store Relational Databases though conventionally accepted Document Store, also commonly known as “Document suffer from a number of drawbacks which are discussed Oriented Database”, is basically a computer program used in this section for storing, retrieving, updating data stored in database. 1.) Relational databases do not support high The underlying storage structure used in such databases is scalability, until a certain point better hardware can a ‘document’. Each Document Store differs in its be employed but beyond that point the database implementation of data; however each of it assumes that must be distributed. data is enclosed and encoded in some standard format 2.) One of the major disadvantage is data is stored in which may be XML, BSON, PDF or Microsoft office. relational database in form of tables, this structure Each document is represented by a unique key which is a can give rise to high complexity in case data string (URI or path). An API or a query language is cannot be easily encapsulated in a table.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    5 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us