Categories: Development

The Relational database model

The Relational database model or schema is one that uses many tables that are all related to each other, hence the relational name tag.

With the data all being related there is no one main table, instead just many that are references for values throughout the tables.

The benefits of the relational model

Using the relational model means you get a scalable database that is very data-independent for its application. The database has high data integrity and is flexible to being expanded.

The relational model is compact and efficient as strings are rarely or never repeated, instead they get referenced with an id.

Example relational database

Mock example of a sports league Relational database model:

Relational database model example diagram

You can see above that each string has its own table with its own id in that table. This means efficiency is gained on not repeating strings rather much smaller integers.

With a relational modelled database, most tables need to be joined to become human-readable yet can function individually in the internal system.

An example of this is the fixture table, essentially it is all integers with a date string. It needs to be joined with the teams, players and arenas tables to get a name for their respective ids.

A negative for the Relational database model is its susceptibility to become complex and complicated if needing to join many tables.

Reading or storing time-series data could be an issue with the relational model as could be large text values.

 

Share
Tags: MYSQLWeb Dev

Recent Posts

Kennington reservoir drained drone images

A drained and empty Kennington reservoir images from a drone in early July 2024. The…

2 years ago

Merrimu Reservoir drone images

Merrimu Reservoir from drone. Click images to view larger.

2 years ago

Early September spring shots

Some early September spring shots from a bushwalk, It is still too early for wildflowers.

3 years ago

Cloning an NVMe to SK Hynix Platinum P41 NVMe

I recently needed to clone over a smaller NVMe to a 2TB SK Hynix Platinum…

3 years ago

Using Laravel’s deleteDirectory to delete folders and their contents

If you ever needed a simple solution in Laravel to delete an entire directory and…

3 years ago

How to allow only 1 user to register in a Laravel application

How to enforce only one user to register or be registered in a Laravel web…

3 years ago