We use analytics cookies.We use cookies to analyze site traffic and improve your experience.
Loading...
System Design Masterclass · Database Fundamentals
Free preview: the first 2 parts of this 8-part lesson.
Already bought the course? Sign in to read the whole lesson.
this lesson is part of
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$25 once, by PayPal
See the System Design courseread the rest of this lesson in
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$25 once, by PayPal
See the System Design coursein Database Fundamentals
This lesson is part of the full System Design Masterclass. Unlock it along with 769 other lessons for a one-time payment.
One-time payment by card or PayPal
Get Lifetime AccessOne-time payment: UPI, card or netbanking
Get Lifetime Access18 Foundation lessons are free, no payment needed. Try them now
It is easy and good
“It is really nice and good Please join the course”
Where business logic should live is a real question and it is decided by how a team works. Four narrower questions have answers that can be produced in an afternoon, and three of them are not the ones usually cited.

Nothing in this lesson argues for or against putting logic in the database. It settles the parts that measurement can settle.

The round trips are real round trips over a real socket, and the plans are read out of EXPLAIN instead of assumed.

The difference is three thousand messages that did not have to travel anywhere, on a local socket where a round trip is as cheap as it ever gets.

Every real application has a connection pool and has had one for twenty years. The honest ratio is seven times.
Benchmarks comparing a database feature against an unpooled client are common and they are measuring connection setup. Check what the baseline is before accepting any figure of that size.