Generics can make your Go code slower
Go Generics are a long-awaited feature added in Go 1.18. This article covers how generics were implemented in Go and some surprising ways they can impact your code.
PlanetScale offers the world’s fastest and most scalable cloud hosting for Vitess, Neki, and Postgres.
Visit planetscale.com → On Hacker News May 2021 – Sep 2026
Databases & Data 33Systems & Performance 12Tech Industry & Business 9Software Engineering 5Infrastructure & DevOps 5Tools & Productivity 3
Go Generics are a long-awaited feature added in Go 1.18. This article covers how generics were implemented in Go and some surprising ways they can impact your code.
B-trees are used by many modern DBMSs. Learn how they work, how databases use them, and how your choice of primary key can affect index performance.
What are database transactions and how do SQL databases isolate one transaction from another?
Large DELETEs add work instead of reclaiming it. Structure your database so deletion becomes DROP TABLE or TRUNCATE.
Today, PlanetScale launched support for foreign key constraints. This article covers some of the behind-the-scenes technical challenges we had to overcome to support them.