All posts
Performans
3 posts
- The Database Killer: What is the N+1 Query Problem and How to Fix It with Eager LoadingCode that runs in 5ms on your laptop with 3 test rows can easily bring down your production PostgreSQL server when listing 100 orders. Here is how the N+1 query trap happens in modern ORMs and how to fix it in one line.
- What's the Difference Between Debounce and Throttle?Typing "istanbul" into a search box sends 8 requests to the server. For 10,000 users, that means 80,000 requests. Debouncing drops this to 1, while throttling drops it to 4 — but they aren't the same thing, and using the right one matters.
- How database indexes work: from full table scan to B-TreeWhy does searching for a single email in a table with a million rows take 4 seconds? Full table scan, B-Tree, and a 2000x speedup with a single-line `CREATE INDEX`—plus the classic mistakes that silently disable your index.