Ahmed Darwich
Why you shouldn't do application-level sharding
Application-level sharding feels like the right solution. But it isn't your core business, and it causes more headaches than you think.
Company engineering blog
Posts about the PlanetScale platform, MySQL, PostgreSQL, databases, and more.
20 posts in the last 90 days · newest 23 Nov
20 of 20 posts on this page
Ahmed Darwich
Application-level sharding feels like the right solution. But it isn't your core business, and it causes more headaches than you think.
Enrique Gonzalez
Three fixes Insights Agent made to our own Rails API: a reordered feature flag check, an index that made a query slower, and an index that took a query from seconds to milliseconds.

Holly Guevara
PlanetScale is #24 on the 2026 Deloitte Technology Fast 500, a ranking of the fastest-growing technology companies in North America.
Elom Gomez
Insights Agent connect to your codebase to turn slow queries and schema recommendations into pull requests.

Dmitrii Anisovich
We've equipped our customers with an open source tool that not only quickly transfers your data but also provides a replication-based experience, so that any user can migrate from Heroku without extended downtime or the need to purchase a third-party product.

Shlomi Noach
How Neki detects a failed Postgres primary, and chooses a new one from the WAL that survived.
Simeon Griggs
Network-attached storage is a fine choice and a bad default.

Shlomi Noach
How Neki uses preflight checks, query buffering, synchronous replication, and fast rollback to make Postgres primary switchovers less disruptive.
Simeon Griggs
Postgres is the most popular database choice among developers. Postgres is the default choice for agents, powering countless applications where those new to app building don't even know what a database is. Every major cloud offers hosted Postgres.
Rohit Nayak
Shard group design starts from your queries, not your tables. Find the key that your most important queries and transactions share, and put every table that carries that key in one group.
Tom Pang
A one-line convenience in your database schema can become an outage. There are better ways to delete data that won't risk locking up your database.
Nick Van Wiggeren
Postgres compatibility, read-only replicas, smaller Metal instances, Azure, and more have landed for Neki since platform preview.
Mats Rydberg
How Neki evaluates PostgreSQL volatile expressions with the right cardinality to preserve sequence semantics across shards.

Joe Miller
PlanetScale Postgres and Neki databases can now be deployed on Microsoft Azure

Ahmed Darwich
Postgres 19 switches TOAST compression from pglz to LZ4. LZ4 is faster, but it isn't always smaller, and some reads get slower with it.
Patrick Reynolds
TIN v1.0.6 supports stemming in 18 languages and is 2-3x as fast as the GA version
Simeon Griggs
Admission controls in software determine what does or doesn't happen next, and the most common implementation has ancient roots.

Etienne Berube
Use dedicated read replicas to isolate read-only workloads and distribute your data across data centers around the world.

Dirkjan Bussink
Nothing is as fast as not doing anything. How Neki keeps great performance by only decoding the parts of a PostgreSQL result the router actually needs.
Simeon Griggs
What makes a good sharding strategy today might not work so well tomorrow. What happens when you have one tenant hitting your database orders of magnitude more than any other? Or product managers knocking down your door with new requirements? If you're already on Neki…