Tagged “Databases”
5 articles with this tag.
- Choosing a databaseA decision guide for data stores: relational versus the NoSQL families (key-value, document, wide-column, graph), time-series, search and in-memory stores, reasons to choose SQL or NoSQL, polyglot persistence, the role of indexes, and block versus file versus object storage.
- Data modelsRelational, document and graph data models compared: the object-relational mismatch, one-to-many versus many-to-many relationships, schema-on-read versus schema-on-write, data locality, declarative versus imperative queries, and property graphs and triple stores — with guidance on choosing a model.
- ReplicationKeeping copies of data on several machines: single-leader replication with synchronous and asynchronous followers, failover and split brain, replication logs, the problems of replication lag (read-your-writes, monotonic reads, consistent prefix), multi-leader and leaderless replication with quorums, sloppy quorums and conflict resolution.
- Storage enginesHow databases store and find data: append-only logs and hash indexes, SSTables and LSM-trees with compaction and Bloom filters, B-trees with write-ahead logs, write and read amplification, secondary and covering indexes, in-memory databases, OLTP versus OLAP, data warehouses, star schemas and column-oriented storage.
- Transactions and isolationWhat ACID really guarantees, and the concurrency anomalies each isolation level allows: dirty reads and writes, read skew, lost updates, write skew and phantoms. Read committed, snapshot isolation and MVCC, preventing lost updates, and the three ways to get serializability: serial execution, two-phase locking and serializable snapshot isolation.