Why Do Relational Databases Lack Relationships

462 Words2 Pages

Relational databases lack relationships this part discusses how relational database lacks relationships or its simplicity. The relational model has a large join table, sparsely populated rows and lots of null-checking logic makes it more complex, difficult and costly. For example, adding foreign key, and its constraints and maintenance required for the database to operate, scattered tables with nullable columns demand special checking in code, and several joins are necessary to perform one command. And finally, to perform reciprocal queries also are expensive because the database has to consider all the rows in the tables.

NoSQL databases also lack relationships

The method adds relationships/or to use them for connected data to most NoSQL databases such as key-value, document or column oriented is to implant an aggregates identifier inside the field belonging to another aggregate that successfully introducing foreign key. However, this method is highly expensive because it requires joining aggregates at the application level. data quality and query performances can be compromised due to dangling references. dangling references will arise if the application …show more content…

The graph model being flexible , new nodes and new relationships can be added without affecting the network of the original data. The graph database provides a cohesive picture of the whole, including the connection between entities and the data that is stored as a connected data when compared to the relational or the NoSQL relational. It also offers a much deeper picture of the network. For example, in the social network example, the entities, we can see who loves whom and who is colleague_of whom and all the connection and relationships. The graph has an advantage of performing well when dealing with connected