Types of Databases [backup]
Understand various types of databases and their use cases in the system design.
A database is an organized collection of data that can be managed and accessed easily. Primarily, databases are divided into two types; Relational and
Relational databases
Relational databases adhere to particular schemas before storing the data. The data stored in relational databases has prior structure. Mostly, this model organizes data into one or more relations (also called tables), with a unique key for each tuple (instance). Each entity of the data consists of instances and attributes where instances are stored in rows and the attributes of each instance are stored in columns. Since each tuple has a unique key, therefore, a tuple in one table can be linked to a tuple in other tables by storing the primary keys in other tables generally known as foreign keys.
A Structure Query Language (SQL) is used for manipulating the database; insertion, deletion, and retrieval of data.
There are various reasons for the popularity and dominance of relational databases which include simplicity, robustness, flexibility, performance,
But ACID is like a big hammer (by design so that it is generic enough for all the problems), and if some specific application only needs to deal with a few anomalies, there is a window of opportunity to use a custom solution for higher performance (but added complexity).
Let’s discuss ACID in detail:
-
Atomicity: A transaction is considered an atomic unit. Hence, all the statements within a transaction will successfully execute, or none of them will execute. If a statement fails within a transaction; it should be aborted and rollback.
-
...
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy