Search
Lessons (30)
- Indexes, EXPLAIN & Query Plans
Design indexes from real filter, join and sort patterns, then prove improvements with query plans and production-like β¦
- Database Indexing & Transactions
β¦ smaller and faster Covering ( INCLUDE ) Answer the query from the index alone The cost of indexes Indexes aren β¦
- Transactions, Indexes & Concurrency
Interview answers for triggers, ACID, clustered indexes, deadlock/livelock and RAID. Covers PDF questions 8-11 and 18 β¦
- Hash Maps & Sets
β¦ The most famous interview question. js function twoSum(nums, target) { const indexOf = new Map(); // value β index for (let β¦
- Design a Ride-Sharing Service
Match riders and drivers with a geo index, safely lease availability, and treat location as a fast-changing β¦
- Database Relations & Foreign Keys
β¦ Add an index on orders(customer id) when the product frequently loads a customer orders. A foreign key β¦
- Data Structures for Scale
Use geospatial indexes and probabilistic structures to make huge queries practical while understanding their error bounds.  That's why β¦
- Database Internals, Replication and Scaling
β¦ Use indexes and query plans before adding hardware. Replicas increase read capacity but add lag; route read-your β¦
- SQL Language, Identifiers & Data Types
β¦ UUIDs can be generated without a central counter and help distributed writes, but cost more index space. Generated β¦
- Vertical Slice Architecture & the Modular Monolith
β¦ schema) βββ catalog/ β βββ index.ts export { getProductSnapshot } from "./application/β¦" βββ billing/ βββ index.ts ts // modules/catalog/index.ts β the catalog β¦
- Design a Logging and Monitoring Platform
β¦ A durable stream absorbs bursts; processors index a bounded hot window and archive older data cheaply. Partition by β¦
- Binary Search
β¦ find the first / last position "Find the first index where x appears" in [1, 2, 2, 2, 3 β¦
- Storage Engines & Database Operations
β¦ matters A storage engine decides how rows and indexes reach disk. You do not need to implement one β¦
- Replication, Partitioning & Sharding
β¦ Do not shard because it sounds scalable; exhaust indexing, caching, replicas and partitioning where appropriate first.
- N+1 Queries, Loading & Pagination
β¦ id DESC LIMIT 50 Support it with an index matching the filter and sort, such as orders(customer β¦
- Two Pointers & Sliding Window
β¦ longestUniqueSubstring(s) { const lastSeen = new Map(); // char β last index let left = 0; let best = 0; for (let right β¦
- Kafka vs RabbitMQ & the Kafka Ecosystem
β¦ the easiest way to implement the outbox pattern or to stream database changes to search indexes and warehouses β¦
- Big-O Notation Made Simple
β¦ hidden loops Some one-liners hide a loop inside: Code Cost --- --- arr.includes(x) , arr.indexOf(x) O β¦
- Structural Patterns: How to Connect Objects
β¦ README.md", 2), new Folder("src", [new File("index.js", 10), new File("app.js", 25)]), ]); project.getSize β¦
- Stacks & Queues
β¦ new Array(nums.length).fill(-1); const stack = []; // indexes still waiting for a bigger number for (let i β¦
- Linked Lists
β¦ Seriously. Key takeaways - Linked lists trade O(1) index access for O(1) insert/delete at known positions β¦
- How a Web Request Works
β¦ keep-alive connections (skip handshakes), caching and database indexes . All covered in later lessons. Key takeaways - DNS finds β¦
- What Is Apache Kafka?
β¦ K K -- DB[(DB sync)] K -- SE[Search index] K -- AN[Analytics] K -- MON[Monitoring] end Producers publish β¦
- React Fundamentals
β¦ Using the array index as the key causes bugs when items are reordered or removed. State: data that β¦
- Trees & Binary Search Trees
β¦ DOM , JSON objects, React component trees, and database indexes (B-trees). Tree vocabulary ![Tree vocabulary: root, parent, child β¦
- Heaps & Priority Queues
β¦ No node objects needed: For the node at index i Formula --- --- Parent Math.floor((i - 1) / 2) Left β¦
- REST API Design
β¦ c["DB jumps straight there<br/ using the index β‘"] end Rule 5: Idempotency for unsafe retries β Networks fail β¦
- Normalization & Denormalization
β¦ A query cannot safely join, constrain, index, or update one item inside that string. Good 1NF shape: one β¦
- Caching & Redis
β¦ ms In the next room Database with an index ~5 ms Downstairs Slow DB query / external API 100 β¦