Skip to content

Part 5 of 18

Databases & Storage

14 pages · 14 written

  1. 1.Storage Fundamentals: Memory, Disk, Block, File and ObjectBasic

    The memory and storage hierarchy, HDD vs SSD, block vs file vs object storage, when each fits, durability vs availability, and RAID in brief.

  2. 2.Relational Databases and SQLBasic

    Tables, keys, joins and constraints; how a SQL query executes; transactions; when to pick an RDBMS; PostgreSQL vs MySQL; and the limits of one node.

  3. 3.ACID Transactions and Isolation LevelsAdvanced

    What ACID guarantees, how the write-ahead log and MVCC work, the anomalies each isolation level allows, and how to choose a level in Postgres and MySQL.

  4. 4.NoSQL Database TypesIntermediate

    Key-value, document, wide-column, graph, time-series, search, vector and in-memory stores: what each is good and bad at, real examples, and BASE.

  5. 5.SQL vs NoSQL: How to ChooseIntermediate

    Choosing between relational and NoSQL databases by data shape, relationships, consistency, scale, query flexibility and team skill; myths, NewSQL and polyglot.

  6. 6.Data ModelingIntermediate

    Entities, relationships and ER diagrams; normalization and denormalization; modeling for access patterns; NoSQL keys and single-table design; schema evolution.

  7. 7.Database IndexingIntermediate

    How indexes speed up queries: B-tree and hash indexes, composite column order, covering and clustered indexes, full-text and geo indexes, costs and EXPLAIN.

  8. 8.Storage Engines: B-Trees vs LSM TreesAdvanced

    How databases store data on disk: page-based B-trees vs log-structured LSM trees, WAL, compaction, bloom filters, amplification, and which databases use which.

  9. 9.Concurrency Control and Database LockingAdvanced

    Race conditions and lost updates; pessimistic locks (FOR UPDATE, shared/exclusive) vs optimistic version checks; deadlocks, lock granularity and lock types.

  10. 10.Database Performance and SQL TuningIntermediate

    Making databases fast: query plans, N+1 queries, connection pooling, materialized views, partitioned tables, batching, replicas, and the order to scale in.

  11. 11.Object Storage and Blob StorageIntermediate

    How S3-style object storage works: buckets, keys, metadata, replication and erasure coding, consistency, presigned URLs, multipart upload and lifecycle.

  12. 12.Graph DatabasesIntermediate

    Graph databases model data as nodes and edges: property graphs vs RDF, index-free adjacency, Cypher/Gremlin/SPARQL/GQL, partitioning, and TAO-style scale.

  13. 13.Distributed File Systems: GFS, HDFS and SuccessorsAdvanced

    How GFS and HDFS split files into replicated chunks under a metadata master: leases, write pipelines, HA, small files, erasure coding, Colossus and Ceph.

  14. 14.Data Lifecycle, Tiering and RetentionIntermediate

    Manage data from creation to deletion: classification, hot-to-archive tiers, TTLs, downsampling, retention, legal hold, GDPR erasure, crypto-shredding.