DataBurst Data Engineering Wiki - Roadmap Step-by-Step: https://wiki.databurst.tech/docs/roadmap/ - Introduction: https://wiki.databurst.tech/docs/roadmap/introduction/ - Programming Language: https://wiki.databurst.tech/docs/roadmap/programming-language/ - Python: https://wiki.databurst.tech/docs/roadmap/programming-language/python/ - Java: https://wiki.databurst.tech/docs/roadmap/programming-language/java/ - Scala: https://wiki.databurst.tech/docs/roadmap/programming-language/scala/ - Go: https://wiki.databurst.tech/docs/roadmap/programming-language/go/ - Rust: https://wiki.databurst.tech/docs/roadmap/programming-language/rust/ - Operating System: https://wiki.databurst.tech/docs/roadmap/operating-system/ - Windows: https://wiki.databurst.tech/docs/roadmap/operating-system/windows/ - Linux: https://wiki.databurst.tech/docs/roadmap/operating-system/linux/ - Networking: https://wiki.databurst.tech/docs/roadmap/networking/ - Protocols: https://wiki.databurst.tech/docs/roadmap/networking/protocols/ - TCP/IP: https://wiki.databurst.tech/docs/roadmap/networking/protocols/tcp/ - DNS: https://wiki.databurst.tech/docs/roadmap/networking/protocols/dns/ - HTTP: https://wiki.databurst.tech/docs/roadmap/networking/protocols/http/ - HTTPS: https://wiki.databurst.tech/docs/roadmap/networking/protocols/https/ - SSH: https://wiki.databurst.tech/docs/roadmap/networking/protocols/ssh/ - UDP: https://wiki.databurst.tech/docs/roadmap/networking/protocols/udp/ - Concepts: https://wiki.databurst.tech/docs/roadmap/networking/concepts/ - IP addressing: https://wiki.databurst.tech/docs/roadmap/networking/concepts/ip-addressing/ - DHCP: https://wiki.databurst.tech/docs/roadmap/networking/concepts/dhcp/ - Firewalls: https://wiki.databurst.tech/docs/roadmap/networking/concepts/firewalls/ - VPN: https://wiki.databurst.tech/docs/roadmap/networking/concepts/vpn/ - General Software Engineering Skills: https://wiki.databurst.tech/docs/roadmap/general-software-engineering-skills/ - OAuth: https://wiki.databurst.tech/docs/roadmap/general-software-engineering-skills/oauth/ - JWT: https://wiki.databurst.tech/docs/roadmap/general-software-engineering-skills/jwt/ - GraphQL: https://wiki.databurst.tech/docs/roadmap/general-software-engineering-skills/graphql/ - REST: https://wiki.databurst.tech/docs/roadmap/general-software-engineering-skills/rest/ - gRPC: https://wiki.databurst.tech/docs/roadmap/general-software-engineering-skills/grpc/ - Caching: https://wiki.databurst.tech/docs/roadmap/general-software-engineering-skills/caching/ - Web Frameworks and API Development: https://wiki.databurst.tech/docs/roadmap/web-frameworks-and-api-development/ - Python: https://wiki.databurst.tech/docs/roadmap/web-frameworks-and-api-development/python/ - Go: https://wiki.databurst.tech/docs/roadmap/web-frameworks-and-api-development/go/ - Java: https://wiki.databurst.tech/docs/roadmap/web-frameworks-and-api-development/java/ - Version Control System: https://wiki.databurst.tech/docs/roadmap/version-control-system/ - git: https://wiki.databurst.tech/docs/roadmap/version-control-system/git/ - Version Control System Hosting: https://wiki.databurst.tech/docs/roadmap/version-control-system-hosting/ - Github: https://wiki.databurst.tech/docs/roadmap/version-control-system-hosting/github/ - Gitlab: https://wiki.databurst.tech/docs/roadmap/version-control-system-hosting/gitlab/ - BitBucket: https://wiki.databurst.tech/docs/roadmap/version-control-system-hosting/bitbucket/ - Distributed Systems Concepts: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/ - CAP: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/cap/ - PACELC: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/pacelc/ - Sharding: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/sharding/ - Clock: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/clock/ - ACID: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/acid/ - Replication: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/replication/ - Distributed Transactions: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/transaction/ - Indexing: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/indexing/ - Batch and Stream Processing: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/batch-and-stream-processing/ - Consistency vs Eventual Consistency: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/consistency-vs-eventual-consistency/ - Normalization or Denormalization: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/normalization-or-denormalization/ - SQL Fundamentals: https://wiki.databurst.tech/docs/roadmap/sql-fundamentals/ - Basic SQL: https://wiki.databurst.tech/docs/roadmap/sql-fundamentals/basic-sql/ - Advanced SQL: https://wiki.databurst.tech/docs/roadmap/sql-fundamentals/advanced-sql/ - Databases: https://wiki.databurst.tech/docs/roadmap/databases/ - Relational: https://wiki.databurst.tech/docs/roadmap/databases/relational/ - NoSQL: https://wiki.databurst.tech/docs/roadmap/databases/nosql/ - Columnar: https://wiki.databurst.tech/docs/roadmap/databases/nosql/columnar/ - Document Based: https://wiki.databurst.tech/docs/roadmap/databases/nosql/document-based/ - Key-Value: https://wiki.databurst.tech/docs/roadmap/databases/nosql/key-value/ - Time Series: https://wiki.databurst.tech/docs/roadmap/databases/nosql/time-series/ - Vector: https://wiki.databurst.tech/docs/roadmap/databases/nosql/vector/ - Graph: https://wiki.databurst.tech/docs/roadmap/databases/nosql/graph/ - NewSQL: https://wiki.databurst.tech/docs/roadmap/databases/nosql/newsql/ - Data Modeling: https://wiki.databurst.tech/docs/roadmap/data-modeling/ - Star Schema (Ralph Kimball): https://wiki.databurst.tech/docs/roadmap/data-modeling/star-schema/ - Snowflake: https://wiki.databurst.tech/docs/roadmap/data-modeling/snowflake/ - Data Vault: https://wiki.databurst.tech/docs/roadmap/data-modeling/data-vault/ - Data Management Architecture: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/ - Relational Data Warehouse: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/relational-data-warehouse/ - Data Lake: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/data-lake/ - Modern Data Warehouse: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/modern-data-warehouse/ - Data Fabric: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/data-fabric/ - Data Mart: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/data-mart/ - Data Lakehouse: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/data-lakehouse/ - Data Mesh: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/data-mesh/ - Data Integration: https://wiki.databurst.tech/docs/roadmap/data-integration/ - ETL: https://wiki.databurst.tech/docs/roadmap/data-integration/etl/ - ELT: https://wiki.databurst.tech/docs/roadmap/data-integration/elt/ - CDC: https://wiki.databurst.tech/docs/roadmap/data-integration/cdc/ - Reverse ETL: https://wiki.databurst.tech/docs/roadmap/data-integration/reverse-etl/ - Storage: https://wiki.databurst.tech/docs/roadmap/storage/ - Block Storage: https://wiki.databurst.tech/docs/roadmap/storage/block-storage/ - Object Storage: https://wiki.databurst.tech/docs/roadmap/storage/object-storage/ - File Formats and Serialization: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/ - File Formats: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/file-formats/ - CSV: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/file-formats/csv/ - JSON: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/file-formats/json/ - Parquet: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/file-formats/parquet/ - XML: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/file-formats/xml/ - Serialization: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/serialization/ - Avro: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/serialization/avro/ - Protocol Buffers: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/serialization/protobuf/ - Query Engine: https://wiki.databurst.tech/docs/roadmap/query-engine/ - Apache Hive: https://wiki.databurst.tech/docs/roadmap/query-engine/hive/ - SparkSQL: https://wiki.databurst.tech/docs/roadmap/query-engine/sparksql/ - Trino: https://wiki.databurst.tech/docs/roadmap/query-engine/trino/ - Presto: https://wiki.databurst.tech/docs/roadmap/query-engine/presto/ - Data Architecture: https://wiki.databurst.tech/docs/roadmap/data-architecture/ - Kappa: https://wiki.databurst.tech/docs/roadmap/data-architecture/kappa/ - Lambda: https://wiki.databurst.tech/docs/roadmap/data-architecture/lambda/ - Data Processing: https://wiki.databurst.tech/docs/roadmap/data-processing/ - Pipeline Orchestration: https://wiki.databurst.tech/docs/roadmap/pipeline-orchestration/ - Messaging and Streaming Platform: https://wiki.databurst.tech/docs/roadmap/messaging-and-streaming-platform/ - Data Governance: https://wiki.databurst.tech/docs/roadmap/data-governance/ - Data Quality: https://wiki.databurst.tech/docs/roadmap/data-governance/data-quality/ - Data Visualization: https://wiki.databurst.tech/docs/roadmap/data-visualization/ - Containerization: https://wiki.databurst.tech/docs/roadmap/containerization/ - Docker: https://wiki.databurst.tech/docs/roadmap/containerization/docker/ - Podman: https://wiki.databurst.tech/docs/roadmap/containerization/podman/ - containerd: https://wiki.databurst.tech/docs/roadmap/containerization/containerd/ - Container Orchestration: https://wiki.databurst.tech/docs/roadmap/container-orchestration/ - Kubernetes: https://wiki.databurst.tech/docs/roadmap/container-orchestration/kubernetes/ - Docker Swarm: https://wiki.databurst.tech/docs/roadmap/container-orchestration/docker-swarm/ - Apache Mesos: https://wiki.databurst.tech/docs/roadmap/container-orchestration/apache-mesos/ - CI/CD: https://wiki.databurst.tech/docs/roadmap/cicd/ - DataOps: https://wiki.databurst.tech/docs/roadmap/cicd/dataops/ - Infrastructure as Code: https://wiki.databurst.tech/docs/roadmap/infrastructure-as-code/ - Configuration Management: https://wiki.databurst.tech/docs/roadmap/infrastructure-as-code/configuration-management/ - Infrastructure Provisioning: https://wiki.databurst.tech/docs/roadmap/infrastructure-as-code/infrastructure-provisioning/ - Observability: https://wiki.databurst.tech/docs/roadmap/observability/ - Logging: https://wiki.databurst.tech/docs/roadmap/observability/logging/ - Monitoring: https://wiki.databurst.tech/docs/roadmap/observability/monitoring/ - Tracing: https://wiki.databurst.tech/docs/roadmap/observability/tracing/ - Glossary: https://wiki.databurst.tech/docs/roadmap/glossary/
$ psql -c '\d orders'
# Relational Databases A **relational database** stores data in **tables** (relations) made of rows and typed columns, links tables through **keys**, and lets you ask questions in **SQL**. The database, not your application, enforces the rules: types, uniqueness, references between tables, and **ACID transactions** so a half-finished change is never visible. The model comes from E. F. Codd's 1970 paper and still runs most of the world's business data: PostgreSQL, MySQL, SQL Server, Oracle and SQLite are all relational. ## The building blocks - **Table**: one kind of thing, for example `customers` or `orders`. Every row has the same columns. - **Primary key**: a column (or set of columns) that uniquely identifies a row, such as `customers.id`. - **Foreign key**: a column that points to another table's primary key, such as `orders.customer_id → customers.id`. The database rejects orders for customers that do not exist. - **Join**: combine rows from several tables by matching keys at query time. - **Schema**: the declared structure (tables, columns, types, constraints). It is enforced on write (**schema-on-write**). {{< fig kicker="$ SELECT c.name, SUM(o.total) FROM orders o JOIN customers c ..." title="Keys link tables, joins follow the keys" >}} CUSTOMERS idnamecity 1aliceNYC 2samTOR 3ryanCHI ORDERS idcustomer_idtotal 1011250 1022120 1032980 1041450 FOREIGN KEY → customers.id SELECT c.name, SUM(o.total) AS total FROM orders o JOIN customers c ON o.customer_id = c.id GROUP BY c.name; RESULT nametotal alice700 sam1100 INSERT INTO orders VALUES (105, 9, 70); ERROR: violates foreign key constraint
  1. Two tables. Each customer is stored once; each order stores only the customer's id.
  2. orders.customer_id is a foreign key: every value must exist in customers.id.
  3. To answer "how much did each customer spend?", SQL joins the tables on that key.
  4. For sam (id 2) the engine finds orders 102 and 103. An index on customer_id makes this a lookup, not a full scan.
  5. The result: one row per customer. ryan has no orders, so an inner join leaves him out (a LEFT JOIN would keep him).
  6. The database guards integrity: an order for customer 9, who does not exist, is rejected.
{{< /fig >}} ## How a relational database works inside - **Row storage.** Rows are packed into fixed-size pages (8 KB in PostgreSQL, 16 KB in InnoDB). Reading or updating one whole row is cheap; scanning one column across 100 million rows is not. That is why analytics moves to [columnar]({{< relref "../noSQL/columnar" >}}) systems. - **Indexes.** A **B-tree** index on `customer_id` turns "find all orders of customer 2" from reading every page into a few page reads. Indexes speed up reads and slow down writes. See [Indexing]({{< relref "/docs/roadmap/distributed-systems-concepts/indexing" >}}). - **Write-ahead log (WAL).** Every change is first appended to a log, and the log is flushed to disk at commit, before the changed data pages are written. After a crash the database replays the log. The same log feeds replicas and [change data capture]({{< relref "/docs/roadmap/data-integration/cdc" >}}). - **Transactions.** `BEGIN … COMMIT` groups changes so they all happen or none do (**ACID**). Concurrency control (MVCC in PostgreSQL and InnoDB) lets readers and writers work without blocking each other. See [ACID]({{< relref "/docs/roadmap/distributed-systems-concepts/acid" >}}). - **Query planner.** SQL says *what* you want; a cost-based optimizer decides *how*: which index, which join order, hash join or nested loop. `EXPLAIN ANALYZE` shows the plan. ## Normalization Storing each fact once (the customer's city lives only in `customers`) avoids update anomalies: change it in one place and every join sees the new value. Analytics schemas often **denormalize** on purpose to avoid joins. See [Normalization or Denormalization]({{< relref "/docs/roadmap/distributed-systems-concepts/normalization-or-denormalization" >}}). ## Popular relational databases | Database | License | Notes | |---|---|---| | **PostgreSQL** | Open source (PostgreSQL License) | The default choice in 2026. Rich types (`jsonb`, arrays), extensions (PostGIS, pgvector, TimescaleDB), strong SQL compliance. | | **MySQL / MariaDB** | GPL | Huge install base in web apps. InnoDB storage engine. MariaDB is a community fork. | | **SQL Server** | Commercial | Common in Microsoft shops; strong BI tooling. | | **Oracle** | Commercial | Large enterprises, finance, telecom. | | **SQLite** | Public domain | A library, not a server. Ships in every phone and browser; great for local tools and tests. | ## When to use one, and when not **Use a relational database when** data has clear structure and relationships, correctness matters (money, inventory, bookings), and you need ad hoc queries you did not plan for. **Look elsewhere when** a single node cannot hold the write volume (consider [distributed SQL]({{< relref "../noSQL/newsql" >}}) or sharding), when the main workload is scanning billions of rows for analytics (a columnar warehouse), or when the access pattern is purely `get(key)` at extreme scale (a [key-value]({{< relref "../noSQL/key-value" >}}) store). ## Common mistakes - **Running heavy analytics on the production primary.** Use a read replica, or replicate into a warehouse. - **Missing indexes on foreign keys.** Joins and cascading deletes turn into full scans. - **`SELECT *` in pipelines.** Schema changes upstream silently break or bloat downstream tables. Name your columns. - **Long-running transactions.** They hold locks and, in PostgreSQL, block vacuum, so tables bloat. - **Treating "relational" as "doesn't scale".** A well-indexed PostgreSQL on one modern server handles tens of thousands of transactions per second. ## Learning Resources - [A Relational Model of Data for Large Shared Data Banks](https://dl.acm.org/doi/10.1145/362384.362685): E. F. Codd, 1970 - [PostgreSQL documentation](https://www.postgresql.org/docs/current/): the tutorial and "Performance Tips" chapters are excellent - [Use The Index, Luke](https://use-the-index-luke.com/): SQL indexing and tuning, free online - [CMU 15-445/645 Intro to Database Systems](https://15445.courses.cs.cmu.edu/): how storage, indexes, transactions and query execution work - *Database Internals*, Alex Petrov: storage engines and distributed databases - *Designing Data-Intensive Applications* (2nd ed.), Martin Kleppmann and Chris Riccomini - [PostgreSQL Tutorial](https://www.postgresqltutorial.com/)