Topic
Database
Learn Database as a connected topic across chapters, concepts, simulations, and interview reasoning.
10 Concepts48 Articles17h 51m
Overview
Learn Database as a connected topic across chapters, concepts, simulations, and interview reasoning.
How this topic helps
System Design
Distributed Systems
Databases
Transactions
Learning Path in this Topic
Series that contain articles from Database. Select a path to filter the article list.
Articles
48 matched articles
Article 5Types of Locks Explained: Optimistic vs. Pessimistic LockingTLDR: Pessimistic locking locks the record before editing β safe but slower under low contention. Optimistic locking checks for changes before saving using a version number β fast but can fail and req13 min
Article 6Compare-and-Swap and Optimistic Locking: How Every Database Implements ItTLDR: Compare-and-Swap (CAS) is the CPU-level atomic instruction that makes lock-free concurrency possible. Optimistic locking builds on it at the database layer: read freely, compute locally, write o34 minPage 1 of 8