Database

Here is a complete and structured definition for your "Long Definition" (Rich Text) field concerning the Database.

Complete definition of a database

A database (often abbreviated as DB ) is an organized system for storing, managing, and retrieving information in a structured manner. Unlike a simple text file, a database is designed to handle huge volumes of data while ensuring its integrity and rapid accessibility by multiple users or applications simultaneously.

The two main types of databases

There are two main storage architectures, suited to different needs:

  1. Relational databases (SQL):
    • The data is organized in tables (columns and rows), much like an Excel spreadsheet.
    • They use "keys" to link tables together (for example, linking a Customer to their Order).
    • Examples: MySQL, PostgreSQL, Oracle.
  2. Non-Relational Databases (NoSQL):
    • They store data in more flexible forms: documents (JSON), graphs, or key-value pairs.
    • They are ideal for big data and unstructured data.
    • Examples: MongoDB, Redis, Firebase.

The role of the DBMS (Database Management System)

To interact with the data, we use intermediary software called a DBMS (database management system). This software executes commands to create, read, update, and delete data (known as CRUD operations: Create, Read, Update, Delete).

Why is this essential?

Without a database, applications would be "amnesiac":

  • Persistence: Information survives even if the server restarts.
  • Search: A specific user can be found among millions in a matter of milliseconds.
  • Security: It manages access rights so that not just anyone can modify anything.