Execution Time Analysis of Electrical Network Tracing in Relational and Graph Databases

Total Page:16

File Type:pdf, Size:1020Kb

Execution Time Analysis of Electrical Network Tracing in Relational and Graph Databases DEGREE PROJECT IN COMPUTER SCIENCE AND ENGINEERING, SECOND CYCLE, 30 CREDITS STOCKHOLM, SWEDEN 2019 Execution Time Analysis of Electrical Network Tracing in Relational and Graph Databases FELIX DE SILVA KTH ROYAL INSTITUTE OF TECHNOLOGY SCHOOL OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE Execution Time Analysis of Electrical Network Tracing in Relational and Graph Databases FELIX DE SILVA Master in Computer Science Date: March 16, 2019 Supervisor: Mika Cohen Examiner: Mads Dam School of Electrical Engineering and Computer Science iii Abstract In today’s society, we handle a lot of connected data. Examples are companies like Facebook and Amazon, that handle connected data in different ways. Geographic Information Systems and Network Informa- tion Systems handle connected data in the form of networks or graphs that can represent anything from an electrical network to a product network. When it comes to connected data, the most commonly used database technology is relational databases. However, with a lot of new databases emerging, there may be better alternatives for connected data that can provide higher performance. In this study we look at the Oracle relational database and the Neo4j graph database and study how both databases traverse an electrical network. The findings indicate that the Neo4j graph database outper- forms the Oracle relational database regarding execution time of search queries. iv Sammanfattning I dagens samhälle hanterar vi mycket kopplad data. Exempel är företag som Facebook och Amazon, som hanterar kopplad data på olika sätt. Geografiska informationssystem och nätverksinformationssystem han- terar kopplad data i form av nätverk eller grafer som kan representera allt från elnät till ett produktnätverk. När det gäller kopplad data är den mest använda tekniken relationsda- tabaser. Men med många nya databaser som kommer fram kan det nu finnas bättre alternativ för kopplad data som kan ge högre prestanda. I denna undersökning tittar vi på relationsdatabasen Oracle och graf- databasen Neo4j och undersöker hur båda databaserna traverserar ett elnät. De presenterade resultaten visar att grafdatabasen Neo4j utför graftraversering snabbare än relationsdatabas Oracle, där fokus ligger på körningstid. Contents 1 Introduction 1 1.1 Problem Background . .1 1.2 Research Question . .3 1.3 Objective . .3 1.4 Purpose . .3 1.5 Scope . .3 1.6 Terminology . .4 2 Theoretical Background 5 2.1 Relational Databases . .5 2.1.1 Tables and Keys . .6 2.1.2 Index . .8 2.1.3 Stored Procedure . .9 2.1.4 Query Processing . .9 2.1.5 The Oracle Relational Database . 11 2.2 Graph Databases . 12 2.2.1 Graphs . 13 2.2.2 Index-Free Adjacency . 14 2.2.3 Query Processing . 15 2.2.4 The Neo4j Graph Database . 17 2.3 Database Benchmarking . 18 2.4 Database Modeling . 19 2.4.1 Relational Modeling . 20 2.4.2 Graph Modeling . 21 2.5 Query Execution Time Estimation . 21 2.5.1 Access Time . 22 2.5.2 Storage Time . 22 2.5.3 Computation Time . 23 2.5.4 Communication Time . 23 v vi CONTENTS 2.6 Database Storage . 23 3 Related Research 25 3.1 Benchmarking Database Systems for Social Network Ap- plications . 25 3.2 The Shortest Path Algorithm Performance Comparison in Graph and Relational Database on a Transportation Network . 26 3.3 Relational Database and Graph Database: A Compara- tive Analysis . 27 3.4 Comparative Analysis of Relational and Graph Databases 28 4 Methodology 30 4.1 Datasets . 30 4.2 Modeling . 31 4.3 Benchmark Framework . 33 4.3.1 Query . 34 5 Results 36 5.1 Execution Time . 36 5.2 Throughput . 38 5.3 Standard Deviation . 39 6 Discussion 40 6.1 Benchmark Comparison . 40 6.2 Complexity Analysis . 41 6.3 Execution Plan Analysis . 41 6.4 Practical Applications . 44 7 Conclusion 46 7.1 Summary . 46 7.2 Future Work . 47 Bibliography 48 A Neo4j Graph Creation Algorithm 51 B Cypher BFS Complete Search 52 C Cypher BFS Stop-Label Search 53 CONTENTS vii D Result Data - Complete Search 54 E Result Data - Stop-Label Search 55 Chapter 1 Introduction In this chapter we present the research question along with the objective of this thesis. The limitation of this thesis is presented in the scope and purpose of this project are thereafter clarified. 1.1 Problem Background We live in a world where information exists everywhere and informa- tion storage is an essential part of society. Information such as e-mails and personal information needs to be stored in easily accessible and efficient ways. Today, storage of information can be either in physical or digital form; for computerized devices, digital formats like file systems and databases are the most efficient ways. The development of traditional SQL databases has been ongoing since the 1980’s [19] and has laid the foundation of modern databases. NoSQL and NewSQL are prominent database types that are today widely used. There are many aspects to consider in selecting database type for stor- age in a system or application, such as the property of connectivity. Everything that can be abstracted into a graph or network has the property of connectivity. The Internet with its hyperlink network, Face- book with its social network and Amazon with its product network are examples of large information networks built from data with high connectivity. When data are connected in a database in such a manner, it can be described as relationships between data points. 1 2 CHAPTER 1. INTRODUCTION In relational databases, the data structures used for data storage are grid-structured tables. Connectivity among data here means that a data cell from a table refers to a data row in the same or another table. Accessing the data points in such relations can be done through the use of SQL JOIN operations, merging the tables to allow access of these data points. When datasets become more interrelated, carrying out queries can be more complex because of the possible need for more JOIN operations. Native graph databases use first-class citizen nodes for storing data and first-class citizen relationships are used for connecting the nodes [10], creating a graph structure. Contained within each node is a list of rela- tionship records that represent the node’s relationships to other nodes. When carrying out queries similar to JOIN operations, the database uses these lists and has direct access to the connected nodes, eliminating the need for a time consuming computation like in relational databases. There are many reasons as to why connectivity and JOIN operations have such a complicated relationship. One reason is the underlying architectures of the database types, in how the inner mechanics of handling and enabling connectivity works. According to Harrison [9], native graph databases are built with primary focus on connectivity, which is not the case for relational databases. The choice of database type therefore varies depending on application and what aspects are prioritized. Digpro is a company that deals with Geographic Information Technolo- gies. They develop and provide software in the form of Geographic Information Systems (GIS) and Network Information Systems (NIS). dpSpatial is a platform developed by Digpro that lays the foundation of all of Digpro’s product applications. It utilizes an Oracle relational database for a range of functionalities, mostly for storing and retrieving data and executing search queries. As mentioned before, Digpro are using a relational database where connectivity is not the main focus which may affect the execution time for search queries. By using a alternative database which has connectivity as its main focus, such as native graph databases, may enhance the performance of dpSpatial. The Neo4j graph database, [20] is of specific interest for Digpro, because CHAPTER 1. INTRODUCTION 3 it is widely used and optimized for connected data [19][10]. Digpro handles highly connected infrastructural electrical networks with dif- ferent layers representing various levels of structures, cables and cable housing. Due to the complexity of the structured data with respect to connectivity, it is possible that the Neo4j graph database can be an effective solution in handling search queries. This possibility is further explored in this project. 1.2 Research Question How does a native graph database affect the execution time of search queries in an interconnected electrical network, compared to a relational database? 1.3 Objective This thesis aims to investigate whether a native graph database is a better alternative than a relational database, concerning the execution time of search queries requiring retrieval of connected data. In this study, the concept of execution time is interpreted as the time from when a query is sent until a response is received from the database. 1.4 Purpose This study explores the improvement possibilities of search queries in terms of execution time by replacing relational databases with native graph databases. If this study shows improvements this may be rele- vant for companies handling connected data and may aid in further improving their software by exploring native graph databases. 1.5 Scope The databases that are studied in this thesis are the Oracle relational database and the Neo4j graph database. Specifically, it is investigated whether Neo4j has a shorter execution time when traversing an inter- connected electrical network than Oracle. The underlying models of 4 CHAPTER 1. INTRODUCTION the electrical networks are in this study identical for both databases. In this study, we compare Neo4j and Oracle in terms of the database internals, the underlying architecture and the algorithms. External factors such as system latency are not within the scope of this study, due to both databases operating on machines with similar hardware (e.g. SSD, CPU and RAM). 1.6 Terminology Expression Abbreviation Definition Oracle Oracle A relational database Relational Database developed by Oracle Co. Neo4j Neo4j A native graph database Graph Database developed by Neo4j Inc.
Recommended publications
  • Empirical Study on the Usage of Graph Query Languages in Open Source Java Projects
    Empirical Study on the Usage of Graph Query Languages in Open Source Java Projects Philipp Seifer Johannes Härtel Martin Leinberger University of Koblenz-Landau University of Koblenz-Landau University of Koblenz-Landau Software Languages Team Software Languages Team Institute WeST Koblenz, Germany Koblenz, Germany Koblenz, Germany [email protected] [email protected] [email protected] Ralf Lämmel Steffen Staab University of Koblenz-Landau University of Koblenz-Landau Software Languages Team Koblenz, Germany Koblenz, Germany University of Southampton [email protected] Southampton, United Kingdom [email protected] Abstract including project and domain specific ones. Common applica- Graph data models are interesting in various domains, in tion domains are management systems and data visualization part because of the intuitiveness and flexibility they offer tools. compared to relational models. Specialized query languages, CCS Concepts • General and reference → Empirical such as Cypher for property graphs or SPARQL for RDF, studies; • Information systems → Query languages; • facilitate their use. In this paper, we present an empirical Software and its engineering → Software libraries and study on the usage of graph-based query languages in open- repositories. source Java projects on GitHub. We investigate the usage of SPARQL, Cypher, Gremlin and GraphQL in terms of popular- Keywords Empirical Study, GitHub, Graphs, Query Lan- ity and their development over time. We select repositories guages, SPARQL, Cypher, Gremlin, GraphQL based on dependencies related to these technologies and ACM Reference Format: employ various popularity and source-code based filters and Philipp Seifer, Johannes Härtel, Martin Leinberger, Ralf Lämmel, ranking features for a targeted selection of projects.
    [Show full text]
  • Multiple-Aspect Analysis of Semantic Trajectories
    Konstantinos Tserpes Chiara Renso Stan Matwin (Eds.) Multiple-Aspect Analysis LNAI 11889 of Semantic Trajectories First International Workshop, MASTER 2019 Held in Conjunction with ECML-PKDD 2019 Würzburg, Germany, September 16, 2019 Proceedings Lecture Notes in Artificial Intelligence 11889 Subseries of Lecture Notes in Computer Science Series Editors Randy Goebel University of Alberta, Edmonton, Canada Yuzuru Tanaka Hokkaido University, Sapporo, Japan Wolfgang Wahlster DFKI and Saarland University, Saarbrücken, Germany Founding Editor Jörg Siekmann DFKI and Saarland University, Saarbrücken, Germany More information about this series at http://www.springer.com/series/1244 Konstantinos Tserpes • Chiara Renso • Stan Matwin (Eds.) Multiple-Aspect Analysis of Semantic Trajectories First International Workshop, MASTER 2019 Held in Conjunction with ECML-PKDD 2019 Würzburg, Germany, September 16, 2019 Proceedings Editors Konstantinos Tserpes Chiara Renso Harokopio University ISTI-CNR Athens, Greece Pisa, Italy Stan Matwin Dalhousie University Halifax, NS, Canada ISSN 0302-9743 ISSN 1611-3349 (electronic) Lecture Notes in Artificial Intelligence ISBN 978-3-030-38080-9 ISBN 978-3-030-38081-6 (eBook) https://doi.org/10.1007/978-3-030-38081-6 LNCS Sublibrary: SL7 – Artificial Intelligence © The Editor(s) (if applicable) and The Author(s) 2020. This book is an open access publication. Open Access This book is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.
    [Show full text]
  • Graph Databases – Are They Really So New
    International Journal of Advances in Science Engineering and Technology, ISSN: 2321-9009 Volume- 4, Issue-4, Oct.-2016 GRAPH DATABASES – ARE THEY REALLY SO NEW 1MIRKO MALEKOVIC, 2KORNELIJE RABUZIN, 3MARTINA SESTAK 1,2,3Faculty of Organization and Informatics Varaždin, University of Zagreb, Croatia E-mail: [email protected], [email protected], [email protected] Abstract- Even though relational databases have been (and still are) the most widely used database solutions for many years, there were other database solutions in use before the era of relational databases. One of those solutions were network databases with the underlying network model, whose characteristics will be presented in detail in this paper. The network model will be compared to the graph data model used by graph databases, the relatively new category of NoSQL databases with a growing share in the database market. The similarities and differences will be shown through the implementation of a simple database using network and graph data model. Keywords- Network data model, graph data model, nodes, relationships, records, sets. I. INTRODUCTION ● Hierarchical databases This type of databases is based on the hierarchical The relational databases were introduced by E. G. data model, whose structure can be represented as a Codd in his research papers in 1970s. In those papers layered tree in which one data table represents the he discussed relational model as the underlying data root of that tree (top layer), and the others represent model for the relational databases, which was based tree branches (nodes) emerging from the root of the on relational algebra and first-order predicate logic.
    [Show full text]
  • Appendix E: an Overview of the Network Data Model
    Elmasri_APPC Page 1 Monday, April 3, 2006 3:40 PM An Overview of the APPENDIXE Network Data Model This appendix provides an overview of the network data model.1 The original network model and language were presented in the CODASYL Data Base Task Group’s 1971 report; hence it is sometimes called the DBTG model. Revised reports in 1978 and 1981 incorporated more recent concepts. In this appendix, rather than concentrating on the details of a particular CODASYL report, we present the general concepts behind net- work-type databases and use the term network model rather than CODASYL model or DBTG model. The original CODASYL/DBTG report used COBOL as the host language. Regardless of the host programming language, the basic database manipulation commands of the net- work model remain the same. Although the network model and the object-oriented data model are both navigational in nature, the data structuring capability of the network model is much more elaborate and allows for explicit insertion/deletion/modification semantic specification. However, it lacks some of the desirable features of the object mod- els that we discussed in Chapter 11, such as inheritance and encapsulation of structure and behavior. 1. The complete chapter on the network data model and about the IDMS system from the second edition of this book is available at http://www.awl.com/cseng/titles/0-8053-1755-4. This appendix is an edited excerpt of that chapter. E–1 Elmasri_APPC Page 2 Monday, April 3, 2006 3:40 PM E–2 Appendix E / An Overview of the Network Data Model E.1 Network Data Modeling Concepts There are two basic data structures in the network model: records and sets.
    [Show full text]
  • Studies and Analysis of Popular Database Models
    Pramod Singh et al, International Journal of Computer Science and Mobile Computing, Vol.4 Issue.5, May- 2015, pg. 834-838 Available Online at www.ijcsmc.com International Journal of Computer Science and Mobile Computing A Monthly Journal of Computer Science and Information Technology ISSN 2320–088X IJCSMC, Vol. 4, Issue. 5, May 2015, pg.834 – 838 RESEARCH ARTICLE Studies and Analysis of Popular Database Models Dr. P. K. Rai Prof. I/C, BCA & Head, Computer Centre APSU Rewa Pramod Singh Research Scholar M.G.C.G.V Chitrakoot Satna (M.P), Satna, India; Email: [email protected] ABSTRACT: Data is most valuable part of today world because it is used in everyday of life from a single individual to large organizations. To make the selection and maintenance easy and support strong data protection it is stored in a data model. A data model is a repository of subjectively selected and adapted operational data which can successfully answer any, statistical, complex or analytical queries. Nowadays the database is shared by a globally competitive environment where large amounts of data are required to be processed faster and efficient way .data model keep a subject oriented data which gives the support for management's decision making process. This paper discusses in detail four existing database models like Hierarchical, network, relational and object oriented database and does an analysis to understand the advantages and disadvantages of these database models. Keywords: RDB, OODB. Introduction A Database is an important part of any organization because all information is store in the database where all users can easily access this information in well organized manner.
    [Show full text]
  • The Network Model
    Unit 5 The Network Model 5.1 The Network Model 5.2 IDMS Unit 5 The Network Model Data Modeling Issue . Issue: How to represent entities and relationships? . Two major paradigms S P SP • Relational Hierarchical • Graph { Network . E.g., a 'pile' of data • John, 25, NCTU, CS Dept, ... 01 • Mary, 22, NCTU, IS Dept, ... 02 02 02 02 .. 03 03 COBOL 01 data-record 01 02 name PIC X(6) 02 02 02 02 02 age PIC 9(2) 0303 02 univ PIC X(4) 02 dept PIC X(3) Wei-Pang Yang, Information Management, NDHU Unit 5 The Network Model 5-2 Model 1: Relational . Model 1: Relational - Decomposition (normalization issue) Emp Dept Project Wei-Pang Yang, Information Management, NDHU Unit 5 The Network Model 5-3 Model 2: Hierarchical Dept Emp Project Wei-Pang Yang, Information Management, NDHU Unit 5 The Network Model 5-4 Model 3: Network . Model 3: Network proposed by CODASYL Dept 1:M M : M Project Emp 1:M 1:M E-P Wei-Pang Yang, Information Management, NDHU Unit 5 The Network Model 5-5 5.1 The Network Model . Data Structure Consider the 'supplier-and-parts‘ database S P SP S# SNAME STATUS CITY P# PNAME COLOR WEIGHT CITY S# P# QTY } Structure S1 Smith 20 London P1 Nut Red 12 London S1 P1 300 S2 Jones 10 Paris P2 Bolt Green 17 Paris S1 P2 200 S3 Blake 30 Paris P3 Screw Blue 17 Rome S1 P3 400 S4 Clark 20 London P4 Screw Red 14 London S1 P4 200 S5 Adams 30 Athens P5 Cam Blue 12 Paris S1 P5 100 P6 Cog Red 19 London S1 P6 100 Sample values S2 P1 300 S2 P2 400 S3 P2 200 S4 P2 200 S4 P4 300 S4 P5 400 Wei-Pang Yang, Information Management, NDHU Unit 5 The Network Model 5-6 The Network Model: Sets and Structure Network Model a set of records (Record types): entities .
    [Show full text]
  • I Introduction Entity Relationship Model: Basic Concepts Mapping Ca
    PGDCA PAPER : DBMS LESSON NO. : 7 ENTITY RELATIONSHIP MODEL -I Introduction Entity Relationship Model: Basic Concepts Mapping Cardinalities Entity relationship Diagram Weak and Strong Entity sets Aggregation Summary Questionnaires 7.1 Introduction: The Entity-Relationship Model is a high-level conceptual data model developed by Chem in 1976 to facilitate database design. The E-R Model is shown diagrammatically using E-R diagrams which represents the elements of the conceptual model that show the meanings and the relationships between those elements independent of any particular DBMS and implementation details. Cardinality of a relationship between entities is calculated by measuring how many instances of one entity are related to a single instance of another. One of the main limitations of the E-R Model is that it cannot express relationship among relationships. So to represent these relationships among relationships. We combine the entity sets and their relationship to form a higher level entity set. This process of combining entity sets and their relationships to form a high entity set so as to represent relationships among relationships is called Aggregation. 7.2 Entity Relationship Model The entity-relationship model is based on the perception of a real world that consists of a set of basic objects called entities, and of relationships among these objects. It was developed to facilitate database design by allowing the specification of an enterprise schema which represents the overall logical structure of a database. The E-R Model is extremely useful in mapping the meanings and interactions of real-world enterprises into a conceptual schema. Entity – relationship model was originally proposed by Peter in 1976 as a way to unify the network and relational database views.
    [Show full text]
  • DBMS; IMBA18205DCE Database Models Hierarchical Model
    DBMS; IMBA18205DCE Course Instructor: Dr. Tariq Ahmad Lone Lecture-5 Dated 14.05.2020 Thursday IMBA-2nd Semester Database Models After going through the database architecture, let us now dwell on an important question: how is the data organized in a database? There are many basic structures that exist in a database system. They are called the database models. A database model defines • The logical data structure • Data relationships • Data consistency constraints. Following are the different types of database models used in database systems: Hierarchical Model The hierarchical data model organizes data in a tree structure. There is a hierarchy of parent and child data segments. This structure implies that a record can have repeating information, generally in the child data segments. Data is a series of records, which have a set of field values attached to it. It collects all the instances of a specific record together as a record type. These record types are the equivalent of tables in the relational model, and with the individual records being the equivalent of rows. To create links between these record types, the hierarchical model uses Parent Child Relationships. These are a 1:N mapping between record types. This is done by using trees, like set theory used in the relational model, "borrowed" from mathematics. For example, an organization might store information about an employee, such as name, employee number, department, and salary. The organization might also store information about an employee's children, such as name and date of birth. The employee and children data forms a hierarchy, where the employee data represents the parent segment and the children data represents the child segment.
    [Show full text]
  • Logical Data Independence: Applications Are Insulated from Changes to Logical Structure of the Data
    CSE 544 Principles of Database Management Systems Magdalena Balazinska Winter 2009 Lecture 2 – Early data models CSE 544 - Winter 2009 References • M. Stonebraker and J. Hellerstein. What Goes Around Comes Around. In "Readings in Database Systems" (aka the Red Book). 4th ed. • R&G Book. Chapter 3: “The relational model” CSE 544 - Winter 2009 2 Outline • Different types of data • Early data models – IMS – CODASYL • Relational model (introduction) • Other data models CSE 544 - Winter 2009 3 Different Types of Data • Structured data – All data conforms to a schema. Ex: business data • Semistructured data – Some structure in the data but implicit and irregular – Ex: resume, ads • Unstructured data – No structure in data. Ex: text, sound, video, images • Our focus: structured data & relational DBMSs CSE 544 - Winter 2009 4 Outline • Different types of data • Early data models – IMS – late 1960’s and 1970’s – CODASYL – 1970’s • Relational model (introduction) • Other data models CSE 544 - Winter 2009 5 Early Proposal 1: IMS • Hierarchical data model • Record – Type: collection of named fields with data types (+) – Instance: must match type definition (+) – Each instance must have a key (+) – Record types must be arranged in a tree (-) • IMS database is collection of instances of record types organized in a tree CSE 544 - Winter 2009 6 IMS Example • See Figure 2 in paper “What goes around comes around” CSE 544 - Winter 2009 7 Data Manipulation Language: DL/1 • Each record has a hierarchical sequence key (HSK) – Records are totally ordered: depth-first
    [Show full text]
  • Introduction to Data Modeling
    Chapter 2 Introduction to Data Modeling Objectives: to understand • Data modeling reduces complexities of database • Data modeling and why data models are design important • Designers, programmers, and end users see data • The basic data-modeling building blocks in different ways • What business rules are and how they influence • Different views of same data lead to designs that database design do not reflect organization’s operation • How the major data models evolved historically • Various degrees of data abstraction help • How data models can be classified by level of reconcile varying views of same data abstraction CS275 Fall 2010 1 CS275 Fall 2010 2 Data Modeling and Data Models The Importance of Data Models • Model: an abstraction of a real-world object or • Facilitate interaction among the designer, the event applications programmer, and the end user – Useful in understanding complexities of the real- • End users have different views and needs for data world environment • Data model organizes data for various users • Data models • Data model is a conceptual model - an abstraction – Relatively simple representations of complex real- • It’s a graphical collection of logical constructs world data structures representing the data structure and relationships • Often graphical within the database. • Creating a Data model is iterative and progressive – Cannot draw required data out of the data model – An implementation model would represent how the data are represented in the database. CS275 Fall 2010 3 CS275 Fall 2010 4 1 Data Model
    [Show full text]
  • Hierarchical Model Leads to the Evolution of Relational Model
    International Journal of Engineering and Management Research, Vol. 2, Issue-4, August 2012 ISSN No.: 2250-0758 Pages: 11-14 www.ijemr.net Hierarchical Model Leads To the Evolution of Relational Model 1Gaurav Jindal 2Simmi Bali 1Assistant Professor, Gitarattan International Business School, Rohni, New Delhi 2Website Developer, Asiawebnet Pvt Ltd., Rohini, New Delhi [email protected], [email protected] ABSTRACT Network database structures were developed to allow A hierarchical database model is a data model in which the data retrieval of specific records. They allow any given record is organized into a tree-like structure. The structure allows to point to any other record in the database. Networks representing information using parent/child relationships: each solve the problem of having to backtrack all the way to a parent can have many children, but each child has only one joining “branch” of the database. However, this wide range parent (also known as a 1-to-many relationship). Redundancy of possible connections is also the weakness of applying would occur because hierarchical databases handle one-to-many network structures to practical problems since it was just relationships well but do not handle many-to-many relationships well. Faced with these serious problems, the computer brains of too complex to allow every record to point to every other the world got together and came up with the network model. record. Network Database looks like a hierarchical Database in that you The breakthrough came from basic research conducted can see it as a type of tree. However, in the case of a Network independently by C.
    [Show full text]
  • Unit 9 Data Models
    Data Models and Database Design UNIT 9 DATA MODELS Structure 9.0 Objectives 9.1 Introduction 9.2 Data Modeling 9.2.1 Entity-Relationship Model 9.2.2 Types of Relationship 9.3 Data Models 9.3.1 Hierarchical Model 9.3.2 Network Model 9.3.3 Relational Model 9.3.4 Object-oriented Model 9.4 Relational Database Management Systems (RDBMS) 9.4.1 Characteristics of a Relation 9.4.2 Keys and their Functions 9.4.3 Criteria for a DBMS to be Relational 9.5 Normalisation of Relations 9.5.1 Dependencies 9.5.2 Normal Forms 9.6 Designing Databases 9.7 Summary 9.8 Answers to Self-Check Exercises 9.9 Keywords 9.10 References and Further Reading 9.0 OBJECTIVES In effective database design, data modeling plays an important role. Data modeling is the process of structuring of data requirements. After reading this Unit, you will be able to: l understand the role of data modeling in conceptual database design; l distinguish between various data models and know the characteristics of each; l become conversant with relational database technology; and l comprehend the steps involved in designing databases. 9.1 INTRODUCTION This Unit presents data modeling concepts and the role of the Entity-Relationship 140 (ER) model in conceptual database design. Classical data models, viz., hierarchical model, network model and relational model have been discussed. Concepts of Data Models object-oriented approach have been introduced with illustrations. Considering that Relational Database Management Systems (RDBMS) are still widely in use, relational database technology has been dealt with in details.
    [Show full text]