Search
Lessons (40)
- Database Indexing & Transactions
… smaller and faster Covering ( INCLUDE ) Answer the query from the index alone The cost of indexes Indexes aren …
- Indexes, EXPLAIN & Query Plans
Design indexes from real filter, join and sort patterns, then prove improvements with query plans and production-like …
- Transactions, Indexes & Concurrency
Interview answers for triggers, ACID, clustered indexes, deadlock/livelock and RAID. Covers PDF questions 8-11 and 18 …
- Storage, Search and Location Queries
Use the right tool for each job (object storage for files, a search index for text, a geo …
- Hash Maps & Sets
… The most famous interview question. js function twoSum(nums, target) { const indexOf = new Map(); // value → index for (let …
- Count, for_each, Functions, and Stable Identities
Create repeated resources with predictable addresses and avoid accidental changes caused by list indexes. Identity matters more than …
- DynamoDB Modeling, RDS Scaling and Data Resilience
… same PK, different SK; must be created with the table. - Use sparse indexes : only items that have the …
- Design a Ride-Sharing Service
Find nearby drivers with a map index, then lock one driver to one ride safely. Treat driver locations …
- Arrays & Strings
… equally sized boxes side by side, reached instantly by index](/img/dsa/array-memory.svg) That's why …
- Database Relations & Foreign Keys
… Add an index on orders(customer id) when the product frequently loads a customer orders. A foreign key …
- Month 4: RAG and Knowledge Systems (Weeks 13-16)
… It is cheaper and fresher than fine-tuning. - Indexing (offline) : parse documents, split them into chunks, embed each …
- L6 Production Debugging Casebook
… Adding an index made a query slower What you see: you added an index to speed up a …
- Embeddings, Semantic Search, and RAG
… 3. Index: compute embeddings and store vectors plus metadata in a search index. 4. Retrieve: search with the …
- Database Internals, Replication and Scaling
… Then: - Add a missing index, or fix a query returning far more rows than needed. - Cap the connection …
- React Internals & Concurrent Rendering
… an index changes identity after an insert, removal or sort. {orders.map((order, index) = <OrderRow key={index} order …
- ACID, Transactions & Locks
… Index the columns you filter on Without an index, UPDATE ... WHERE email = ? may have to scan and lock …
- Design a Logging and Monitoring Platform
… From that stream, separate workers build: - a hot index for fast search of recent data (e.g. last …
- 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 …
- CloudFront: Faster Websites and Safer File Delivery
… Create an index.html file: html <!doctype html <html lang="en" <head <meta charset="utf-8" <title Book …
- Behavioral Interviews with the STAR Method
… I checked dashboards, found a slow query after a new release, rolled back, then added the missing index …
- Debug Latency Like an Investigator
… Then fix the measured cause. Walk through a failure The release added a query without an index (an …
- Concurrency, Resilience & Distributed Workflows
… For the full ACID, isolation-level, index and EXPLAIN ANALYZE treatment, continue with [Database Indexing & Transactions](/learn/backend …
- Run Containers on AWS with ECR and ECS
… Create this layout: text bookshop-container/ Dockerfile index.html index.html : html <h1 Book shop container</h1 <p …
- Binary Search
… find the first / last position "Find the first index where x appears" in [1, 2, 2, 2, 3 …
- StatefulSets, DaemonSets, Jobs and CronJobs
… parallelism (how many pods run at once). Indexed Jobs ( completionMode: Indexed ) give each pod a number so it …
- Backend Design Scenarios
… Do you shard, partition or add read replicas first, and why? First measure the query plan, indexes, working …
- Two Pointers & Sliding Window
… longestUniqueSubstring(s) { const lastSeen = new Map(); // char → last index let left = 0; let best = 0; for (let right …
- Storage Engines & Database Operations
… matters A storage engine decides how rows and indexes reach disk. You do not need to implement one …
- Data Structures for Scale
… spatial indexes locate nearby items; probabilistic sketches answer large-set questions cheaply](/img/system-design-l6/scale-data …
- Replication, Partitioning & Sharding
… Do not shard because it sounds scalable; exhaust indexing, caching, replicas and partitioning where appropriate first.
- Big-O Notation Made Simple
… hidden loops Some one-liners hide a loop inside: Code Cost --- --- arr.includes(x) , arr.indexOf(x) O …
- N+1 Queries, Loading & Pagination
… id DESC LIMIT 50 Support it with an index matching the filter and sort, such as orders(customer …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… the easiest way to implement the outbox pattern or to stream database changes to search indexes and warehouses …
- 10,000 Users Do Not Need 10,000 Database Connections
… Find the slow query or long transaction and fix it (index, smaller transaction, timeout). 2. Limit how much …
- Structural Patterns: How to Connect Objects
… README.md", 2), new Folder("src", [new File("index.js", 10), new File("app.js", 25)]), ]); project.getSize …
- Your Job Search Roadmap
… in posts My level (0–3) Action --- --- --- --- SQL & indexing 9 / 10 2 Review [Database Design](/learn/databases) Docker …
- AI Evaluation, Safety, and Security
… Test changes to the model, prompt, index, and preprocessing against a stable regression set. Monitor real-world aggregate …
- AWS Databases: Choose the Right One
… To get an order only by order ID, you need another deliberate access path, such as an index …
- Observability and Incident Response
… a separate connection pool for reports, the missing index, an earlier alert, and a tested rollback. Don't …