Menu
Documentation: A love letter to your future self.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Passing the buck Memes
Posts tagged with Passing the buck
Double It And Give It To The Next Person
Databases
Programming
Debugging
Backend
2 months ago
8.9M views
0 shares
Someone asks how to solve the infamous N+1 query problem in ORMs, and the response is pure gold: just double it and pass it to the next person. Because why fix a performance nightmare when you can make it exponentially worse and let it become someone else's problem? For context: The N+1 query problem happens when your ORM fetches a list of N items, then makes a separate database query for each item's related data. So instead of 1 query, you get N+1 queries. It's like ordering pizza one slice at a time instead of just ordering the whole damn pie. The solution here? Make it 2N+2 queries and yeet it to your colleague. Peak engineering right there. This is the database equivalent of setting your code on fire and walking away in slow motion.
Today's picks
Where's The Love
Programming
149.5M views
15 days ago
Slaps roof of int.
Programming
105.2K views
3 years ago
Hate it when this happens
Programming
106.8K views
5 years ago