Readyset Weekly: Issue 18
Heavyweight Locks and How To Watch Out for Them
Database locks protect consistency, but not all are equal. Row-level locks are common and usually manageable in high-concurrency workloads, but heavyweight locks that control tables, indexes, or schema objects can silently stall systems.
A few examples:
- DDL locks (
ALTER TABLE,CREATE INDEX): Can block reads and writes until the operation completes. - AccessExclusive locks (Postgres): Acquired by
DROP TABLEorTRUNCATE, blocking all concurrent access. - Metadata locks (MySQL): Schema changes wait for in-flight queries, and new queries can pile up behind them.
The tricky part? Heavyweight locks are often invisible until they cause trouble. A migration script, a "quick" index rebuild, or an overused advisory lock can cascade into system-wide stalls or outages.
How to watch out for them:
- Monitor actively: Use
pg_locksin Postgres andperformance_schema.metadata_locksin MySQL. - Keep transactions short: Commit early to release locks.
- Time DDL wisely: Schedule schema changes off-peak or use tools like gh-ost or pg_repack.
- Avoid idle-in-transaction: Enforce timeouts and track long-lived sessions.
- Test in staging: Recreate production traffic to catch lock escalations early.
Heavyweight locks protect data integrity, but catching them early is what keeps systems stable under load.
🔍 What We're Watching in the Database Ecosystem
AI-powered apps are pushing developers to rethink search. Azure AI Search now combines full-text and vector retrieval, making it easier to integrate RAG with enterprise data and build chat or search over structured and unstructured content. As these workloads grow, databases will feel the strain, and intelligent caching is becoming essential to keep experiences fast without changing how developers build.
MySQL 8.0 End of Life Date: What Happens Next?
Oracle has confirmed MySQL 8.0 will reach end-of-life in April 2026, ending security patches and official support. Teams that stay on 8.0 will face growing risks around vulnerabilities and compliance, while upgrades often surface new performance challenges. This Percona blog walks through upgrade paths and extended-support options if you're not ready to move off 8.0 yet.
Databricks CEO says fresh $1B will help him attack a new AI database market
The funding backs Lakebase, a Postgres-based database built for AI agents, and Agent Bricks, its enterprise AI platform. CEO Ali Ghodsi says 80% of new databases are now created by agents, signaling a major shift toward non-human users. If agents begin generating the bulk of database traffic, performance solutions will have to evolve to keep up.
In Case You Missed It
New on Our Blog
WordPress with QueryPilot: Instant Database Scaling Without Code Changes
We put QueryPilot to the test on one of the internet's busiest platforms: WordPress. Out of the box, QueryPilot boosted throughput by ~60% and slashed latency, all without replicas, manual tuning, or rewriting a single query.
Get Readyset Weekly in your inbox
One email a week — what shipped, what we learned, and what is worth reading.