Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Query planning is hard. Doing so in a massive, sharded database is even harder. The blog we published today at PlanetScale was a labor of love. So many people from across the company helped with technical accuracy, writing, visuals, and making it the best it can be. This was...

76,234 Aufrufe • vor 6 Tagen •via X (Twitter)

19 Kommentare

Profilbild von MetaGunny
MetaGunnyvor 6 Tagen

Great article! I can't stand when people use I'd as the primary key name Like yeah let's use is but on the fks use customerid

Profilbild von Aleksandar Hadžibabić
Aleksandar Hadžibabićvor 6 Tagen

I think the greatest challenge with understanding how it works is that many people never faced problems that you're solving themselves. Hard to go from theory to practice in this field. Great blogpost and visuals! 🚀

Profilbild von wolfie
wolfievor 6 Tagen

gorgeous animations

Profilbild von Charles
Charlesvor 5 Tagen

The animations are so great! Would love to see how you guys build those too

Profilbild von Sagar Dua 🇮🇳
Sagar Dua 🇮🇳vor 6 Tagen

+1 for blog 👍 Neki supports consistent hash as the sharding method only? Do cross-shard queries scale well -- didnt notice much mentioned about it in the blog.

Profilbild von Preyforge
Preyforgevor 6 Tagen

the cross-functional part is the real craft here. i make handoffs explicit and keep the complaint verbatim; a polished query plan is only useful when the next person can see what changed and why.

Profilbild von Jye
Jyevor 6 Tagen

Have you written/talked about how you cooridate content work like this? It's excellent btw

Profilbild von Sumit Kumar
Sumit Kumarvor 6 Tagen

Went for the cool animations directly and learnt from blog

Profilbild von Morteza Hosseini
Morteza Hosseinivor 6 Tagen

Looks nice

Profilbild von paske
paskevor 5 Tagen

damn

Profilbild von Ben Mo
Ben Movor 6 Tagen

Following one customer and their orders makes the shard-key decision click. You can see why a perfectly ordinary JOIN suddenly has a travel budget. More database explanations should start with where the rows actually live.

Profilbild von Deep S Shah🇮🇳
Deep S Shah🇮🇳vor 6 Tagen

Time to develop Neki, 1 month, the blog post, 2 months

Profilbild von Abhishek Sahu
Abhishek Sahuvor 5 Tagen

Can u post more on this

Profilbild von Crio Songo
Crio Songovor 6 Tagen

查询规划确实越复杂越难搞,尤其是分库场景下坑真多,我晚上去看看这篇博客学习下。

Profilbild von Valentyn Kit 🦀 | Rust · Solana
Valentyn Kit 🦀 | Rust · Solanavor 5 Tagen

planetscale writeups are consistently worth the read, looking forward to this one.

Profilbild von nana kong ✞
nana kong ✞vor 6 Tagen

please keep this comment you have taught me so much in the past three months then I could’ve dreamed of, for years I kind of just put off DBA tasks but I realize now that’s where all the alpha is 🫱🏾‍🫲🏻

Profilbild von shaurya pratap singh sisodia
shaurya pratap singh sisodiavor 6 Tagen

This is really amazing work

Profilbild von Shrey Gupta
Shrey Guptavor 6 Tagen

great talk!

Profilbild von Adam · silent data failures
Adam · silent data failuresvor 6 Tagen

The sharded case is where a planner stops being an optimisation and becomes a correctness surface, because a plan that fans out to the wrong shard still returns rows. What we watch is whether the row count matches across a re-plan. Does the post cover plan stability?

Ähnliche Videos

A DEVELOPER FOUND SEVEN WAYS TO TAKE DOWN A PRODUCTION DATABASE THAT ALL LOOK EXACTLY LIKE NORMAL, INNOCENT CODE AND ALMOST EVERY TEAM IS SHIPPING AT LEAST ONE OF THEM RIGHT NOW 17 minutes from Josh Berkus, one of the people who actually maintains PostgreSQL, walking through the quiet mistakes that turn a healthy database into a 3am outage. -> The moment it lands, you realize none of these are exotic attacks. They're ordinary-looking decisions -- a query that locks a table, a connection that never closes, a setting no one ever questioned -- that work perfectly until the day they don't, and then they take everything down with them. The scary part isn't that the database breaks. It's how normal the code looks right up until it does. A query that runs in 5ms on your laptop and 5 minutes on prod. A migration that silently locks the whole table. A connection pool that runs dry the moment real traffic shows up. Every one of them passed review. Writing SQL that runs was never the hard part -> writing SQL that survives production is. And now that an AI agent is generating and firing queries at your real database faster than anyone can read them, every one of those seven landmines is one autocomplete away -- and the only person who can stop it is the one who already knows where they're buried. Your database doesn't go down because someone attacked it. It goes down because something that looked completely normal finally caught up with it. Save and Watch it today. You'll see the next outage coming before it lands ↓

slash1s

22,268 Aufrufe • vor 3 Monaten