Menu
Keyboard not found. Press F1 to continue.
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
1 month 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
CINROPE Retractable Under Desk Mount for Elgato Stream Deck MK.2 (15 Keys) with Mounting Screws, Accessories for Elgato Stream Deck MK.2
Affiliate
$12.99
NordVPN
Sponsored
VPN
Mom, pick me up. I'm scared.
Programming
92.1K views
4 years ago