---
title: "PlanetScale (medium)"
description: "Posts from PlanetScale on swe.quest."
url: "https://swe.quest/sources/planetscale?difficulty=medium"
---

# PlanetScale (medium)

Posts from [PlanetScale](https://planetscale.com/blog), newest first.

Posts 1–16 of 16, page 1 of 1, newest first.

## 2026-11-23

- [Why you shouldn't do application-level sharding](https://swe.quest/articles/why-you-shouldn-t-do-application-level-sharding-4fe6249c12df9221.md): PlanetScale · 2026-11-23 · Medium · 21 min read · Distributed databases, Scaling, Consistency models, Schema migrations, PostgreSQL
  Application-level sharding of an OLTP database looks simple on day one (a \`shard\_for(user\_id % N)\` function) but accumulates serious engineering burdens as a system grows.

## 2026-11-19

- [Building PlanetScale with Insights Agent](https://swe.quest/articles/building-planetscale-with-insights-agent-b70b35e12242702e.md): PlanetScale · 2026-11-19 · Medium · 5 min read · MySQL, Performance engineering, AI agents, Ruby, Databases
  PlanetScale ran its Insights Agent, which finds costly queries via Query Insights and opens fix PRs, against its own Rails API on MySQL.

## 2026-11-11

- [How we migrate TBs from Heroku without logical replication](https://swe.quest/articles/how-we-migrate-tbs-from-heroku-without-logical-replication-e0568c616a878849.md): PlanetScale · 2026-11-11 · Medium · 12 min read · PostgreSQL, Schema migrations, Replication, Networking
  PlanetScale's open-source Heroku Migrator moves multi-terabyte Postgres databases off Heroku standard plans, which lack WAL access and logical replication, by using Bucardo trigger-based replication: triggers record changes in delta tables, a one-time COPY loads existing data, and a worker replays the backlog before a controlled switchover with verification.

## 2026-10-23

- [Shard design doesn't start from your tables](https://swe.quest/articles/shard-design-doesn-t-start-from-your-tables-283c900085b220b2.md): PlanetScale · 2026-10-23 · Medium · 8 min read · Distributed databases, PostgreSQL, System design
  Neki's shard groups co-locate related Postgres tables by hashing a shared shard key (e.g. customer\_id via xxhash) into a 64-bit keyspace split across shards, so joins and transactions for one customer stay on a single shard with full Postgres semantics.

## 2026-10-21

- [I don't trust ON DELETE CASCADE](https://swe.quest/articles/i-don-t-trust-on-delete-cascade-44280f7ae72c78f6.md): PlanetScale · 2026-10-21 · Medium · 5 min read · PostgreSQL, Schema migrations, Replication, Databases
  Postgres ON DELETE CASCADE turns a single-row delete into an unbounded transaction that can cause outages at scale.

## 2026-10-13

- [PlanetScale is now available on Azure](https://swe.quest/articles/planetscale-is-now-available-on-azure-bb9363c9d079640b.md): PlanetScale · 2026-10-13 · Medium · 3 min read · Cloud platforms, Kubernetes, Networking, PostgreSQL
  PlanetScale Postgres and Neki databases can now run in three Azure regions (centralus, eastus2, westeurope), with the same HA across three availability zones, Query Insights, backups and NVMe-backed Metal clusters as on AWS and GCP.

## 2026-10-12

- [What gets TOASTed in Postgres](https://swe.quest/articles/what-gets-toasted-in-postgres-267438c13f618a84.md): PlanetScale · 2026-10-12 · Medium · 13 min read · PostgreSQL, Storage engines, Performance engineering
  Postgres TOAST kicks in once a row exceeds 2,032 bytes, compressing variable-length values largest-first and moving them into chunked pg\_toast tables (1,996-byte chunks, 18-byte in-row pointers) when compression isn't enough.

## 2026-10-08

- [TIN v1.0.6: 2-3x faster, with support for stemming](https://swe.quest/articles/tin-v1-0-6-2-3x-faster-with-support-for-stemming-ea2ddc443b54feaf.md): PlanetScale · 2026-10-08 · Medium · 8 min read · Search, PostgreSQL, Performance engineering
  TIN v1.0.6, PlanetScale's Postgres full-text search index, adds Snowball-based stemming for 18 languages via the rust\_stemmers crate and extends its block-max top-k plan to queries with heap-attribute tiebreakers in ORDER BY.

## 2026-10-07

- [What today's software owes to Bronze Age clocks](https://swe.quest/articles/what-today-s-software-owes-to-bronze-age-clocks-f1c84fb59510a8bf.md): PlanetScale · 2026-10-07 · Medium · 8 min read · Resilience, PostgreSQL, API design, Algorithms
  Leaky buckets, descended from Bronze Age water clocks, remain a cheap admission-control mechanism: a bucket stores only its last level and timestamp, so its current level can be computed lazily as max(0, level\_then − drain\_rate × elapsed).

## 2026-09-28

- [Handling hot shards](https://swe.quest/articles/handling-hot-shards-713450434ac73606.md): PlanetScale · 2026-09-28 · Medium · 7 min read · Distributed databases, PostgreSQL, Scaling, Multi-tenancy
  When a shard key like tenant\_id stops matching reality because a few whale tenants dominate load or cross-tenant queries appear, Neki (PlanetScale's sharded Postgres from the Vitess maintainers) offers three escalating fixes: vertically scale the hot shard with its own configuration profile, isolate the whale by narrowing hashed key ranges in the declarative data topology, or reshard specific tables by a better key.

## 2026-09-25

- [When to choose x86-64 vs aarch64](https://swe.quest/articles/when-to-choose-x86-64-vs-aarch64-f7afb2b3f8f87cb4.md): PlanetScale · 2026-09-25 · Medium · 6 min read · PostgreSQL, Hardware, Performance engineering, Replication
  Choosing between aarch64 and x86-64 for a Postgres cluster matters because vCPUs differ: x86 cloud vCPUs are usually hyperthreads sharing a core, while Graviton and Axion vCPUs are full cores.

## 2026-09-22

- [Anatomy of a (Postgres) search engine](https://swe.quest/articles/anatomy-of-a-postgres-search-engine-ef0fff51702b4f16.md): PlanetScale · 2026-09-22 · Medium · 12 min read · Search, PostgreSQL, Data structures, Storage engines
  Inverted indexes power full-text search by mapping each term to a sorted, compressed postings list of document IDs, with optional positional data for phrase/span queries and frequency statistics for BM25 scoring.

## 2026-09-21

- [Blocking cutovers to save replication slots](https://swe.quest/articles/blocking-cutovers-to-save-replication-slots-d52d9d5fcc4a6789.md): PlanetScale · 2026-09-21 · Medium · 5 min read · PostgreSQL, Replication, Event-driven architecture, Deployment
  PlanetScale Postgres blocks planned cutovers (resizes, parameter changes, maintenance) when logical replication slots aren't synchronized to the replica being promoted, because vanilla Postgres will promote a replica without the slot and silently break CDC consumers.

## 2026-09-18

- [The architecture of Neki](https://swe.quest/articles/the-architecture-of-neki-b0a20bdb70a4c3cd.md): PlanetScale · 2026-09-18 · Medium · 9 min read · PostgreSQL, Distributed databases, Replication, System design, Kubernetes
  Neki shards unmodified PostgreSQL behind a single connection string.

## 2025-01-14

- [Automating cherry-picks between OSS and private forks — PlanetScale](https://swe.quest/articles/automating-cherry-picks-between-oss-and-private-forks-planetscale-59bbc498348c8501.md): PlanetScale · 2025-01-14 · Medium · 6 min read · Version control, Developer productivity, CI/CD, Open source
  PlanetScale replaced its weekly cron-based cherry-picking and its conflict-replaying git-replay tool with a stateful Vitess cherry-pick bot that continuously syncs OSS Vitess into a private fork.

## 2024-07-23

- [The State of Online Schema Migrations in MySQL — PlanetScale](https://swe.quest/articles/the-state-of-online-schema-migrations-in-mysql-planetscale-1e08889c563423ee.md): PlanetScale · 2024-07-23 · Medium · 9 min read · Schema migrations, MySQL
  MySQL's native INPLACE online DDL is unsuitable for non-blocking changes because it is resource-greedy, uninterruptible and blocks replicas, causing replication lag as long as the original ALTER.

Same list as RSS: [https://swe.quest/feed.xml?source=planetscale&difficulty=medium](https://swe.quest/feed.xml?source=planetscale&difficulty=medium). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
