Databases
The N+1 Problem: How It Happens and How to Fix It
Why N+1 queries are so common in ORM-based code, how to detect them, and the three patterns that eliminate them without rewriting your data layer.
Why N+1 queries are so common in ORM-based code, how to detect them, and the three patterns that eliminate them without rewriting your data layer.
What ACID guarantees actually mean, what isolation levels exist and what anomalies each one allows, and how to choose the right level for your use case.
An index is a tradeoff - faster reads at the cost of slower writes and more storage. Knowing how B-trees work and how the planner uses them tells you when that tradeoff is worth making.
What actually happens between your SQL query and the rows that come back - storage pages, the query planner, and why understanding this makes you a better developer.