Guide
Databases and Storage
Databases organize information and provide query, consistency and recovery mechanisms. Relational databases model tables and constraints; document and key-value systems use different abstractions. Choosing SQL or NoSQL is a question of data model and workload, not a universal speed ranking.
Meaning and purpose
Databases organize information and provide query, consistency and recovery mechanisms. Relational databases model tables and constraints; document and key-value systems use different abstractions. Choosing SQL or NoSQL is a question of data model and workload, not a universal speed ranking.
How it works in context
Connections consume resources. Pools reuse connections, indexes accelerate selected access patterns, and transactions define units of work. Replication copies changes but may be asynchronous, while clustering can provide other availability semantics. File, block and object storage expose different interfaces and cannot be substituted without application support.
Technical terms in this section
MySQL
MySQL is a relational database system with SQL queries and engine-dependent transaction behavior.
MariaDB
MariaDB is a relational database with MySQL lineage and version-specific compatibility differences.
PostgreSQL
PostgreSQL is a relational database with transactions, constraints and extensible data and query features.
Microsoft SQL Server
Microsoft SQL Server is a relational data platform with product-specific query and administration tools.
MongoDB
MongoDB is a document database requiring workload-specific indexing and consistency design.
Redis
Redis provides in-memory data structures with persistence and operational properties determined by configuration.
Database replication
Database replication copies changes to other instances and may lag or reproduce accidental changes.
Database clustering
Database clustering coordinates multiple instances under defined availability and consistency semantics.
Database backups
Database backups preserve consistent recovery material with method-specific restoration procedures.
Database failover
Database failover promotes or selects an alternate instance with consistency and split-brain considerations.
Database connection pooling
Connection pools reuse database sessions while bounding concurrency and connection-lifecycle costs.
Database security
Database security combines least privilege, constrained network access, protected data and audited operations.
SQL vs. NoSQL
SQL and NoSQL describe different data/query approaches whose suitability depends on workload and requirements.
Object storage
Object storage accesses named objects through service APIs rather than ordinary local filesystem semantics.
File storage
File storage organizes named files and directories under filesystem access semantics.
Block storage
Block storage exposes addressable blocks for filesystems or other storage consumers.
Distributed storage
Distributed storage spreads data across nodes with defined replication, partitioning and consistency behavior.
Operational checks and security
Keep databases bound to trusted interfaces and grant applications only needed privileges. Examine slow queries, locks and connection counts before increasing limits. Replication can copy an accidental deletion; retain independently restorable backups and rehearse restoration.
Read-only example
These commands inspect the surrounding system or protocol. They do not automatically change its configuration or establish every property of this term. Replace example targets only with destinations you are authorized to inspect.
# Run with an authorized database account
mariadb -e "SHOW PROCESSLIST;"
Sources and further reading
These explanations are educational. Implementations, policies and standards evolve; check the current specification and software version before changing a system.