正在加载视频...

视频加载失败

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 次观看 • 6 天前 •via X (Twitter)

19 条评论

MetaGunny 的头像
MetaGunny6 天前

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

Aleksandar Hadžibabić 的头像
Aleksandar Hadžibabić6 天前

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! 🚀

wolfie 的头像
wolfie6 天前

gorgeous animations

Charles 的头像
Charles6 天前

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

Sagar Dua 🇮🇳 的头像
Sagar Dua 🇮🇳6 天前

+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.

Preyforge 的头像
Preyforge6 天前

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.

Jye 的头像
Jye6 天前

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

Sumit Kumar 的头像
Sumit Kumar6 天前

Went for the cool animations directly and learnt from blog

Morteza Hosseini 的头像
Morteza Hosseini6 天前

Looks nice

paske 的头像
paske6 天前

damn

Ben Mo 的头像
Ben Mo6 天前

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.

Deep S Shah🇮🇳 的头像
Deep S Shah🇮🇳6 天前

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

Abhishek Sahu 的头像
Abhishek Sahu6 天前

Can u post more on this

Crio Songo 的头像
Crio Songo6 天前

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

Valentyn Kit 🦀 | Rust · Solana 的头像
Valentyn Kit 🦀 | Rust · Solana6 天前

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

nana kong ✞ 的头像
nana kong ✞6 天前

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 🫱🏾‍🫲🏻

shaurya pratap singh sisodia 的头像
shaurya pratap singh sisodia6 天前

This is really amazing work

Shrey Gupta 的头像
Shrey Gupta6 天前

great talk!

Adam · silent data failures 的头像
Adam · silent data failures6 天前

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?

相关视频

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 次观看 • 3 个月前