Relational and non-relational databases

When database choice is to be made, then it is possible to choose from two options. These options are relational and non-relational databases. Relational databases ensure consistency of the data stored in different databases tables. For example customer orders will ensure that customer record exists in the database.

Non-relational databases offload this functionality onto application front-end. It responsibility of the application to ensure that customer record exists before the order is saved.

If a web site becomes popular and receives more traffic then it is needed to install more performing machine in a case of relational database.

In case of non-relational database back-end, to handle more load is done by adding more servers.

Non-relational database scale better than relational databases, and it is a cheaper option. There may be time when relational database reaches the point of maximum capacity. To handle more load database records can be split.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator