<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/concurrency-vs-throughput-why-more-parallelism-can-make-databases-slower-planetscale-n7hgcu0qz" -->

---
title: Concurrency vs. Throughput: why more parallelism can...
description: A production MySQL database running on PlanetScale's Vitess platform suffered a sixteen-minute outage after a batch job held row locks for fifteen minutes,...
canonical: https://daily.dev/posts/concurrency-vs-throughput-why-more-parallelism-can-make-databases-slower-planetscale-n7hgcu0qz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Concurrency vs. Throughput: why more parallelism can make databases slower — PlanetScale | daily.dev
og:description: A production MySQL database running on PlanetScale's Vitess platform suffered a sixteen-minute outage after a batch job held row locks for fifteen minutes,...
og:url: https://daily.dev/posts/concurrency-vs-throughput-why-more-parallelism-can-make-databases-slower-planetscale-n7hgcu0qz
og:image: https://api.daily.dev/og/posts/N7hGCu0qz.png
og:image:alt: Concurrency vs. Throughput: why more parallelism can make databases slower — PlanetScale
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Concurrency vs. Throughput: why more parallelism can make databases slower — PlanetScale

**[PlanetScale](https://daily.dev/sources/planetscale)** · 9 min read · 0 upvotes · 0 comments

## Summary

A production MySQL database running on PlanetScale's Vitess platform suffered a sixteen-minute outage after a batch job held row locks for fifteen minutes, triggering runaway snapshot reconstruction costs for unrelated read queries and exhausting the buffer pool. The root cause traced back to a migration from Google Cloud SQL, which used a queuing thread-pool connection layer, to Vitess's vttablet transaction pool, which fails fast instead of queuing once full. Initially the team raised the transaction pool cap to ten thousand to stop errors, but this let too many concurrent requests overwhelm InnoDB. Using Little's Law and Gunther's Universal Scalability Law, the piece explains how coherency costs grow quadratically with concurrency, eventually causing retrograde scaling where more parallelism reduces throughput. The fix was to shrink the pool back to roughly a thousand slots and add queuing with a longer timeout, mimicking the old thread-pool behavior. A subsequent 25x traffic burst was absorbed cleanly with only one rejected transaction and stable throughput, demonstrating that limiting in-flight concurrency can increase overall throughput for lock-contended workloads.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://planetscale.com/blog/concurrency-vs-throughput-vitess-mysql>

## Questions this post answers

### Why does increasing MySQL concurrency sometimes reduce overall throughput instead of increasing it?

Increasing concurrency can reduce throughput when coherency costs dominate, as described by Gunther's Universal Scalability Law: X(N) = γN / (1 + α(N−1) + βN(N−1)). The coherency term β grows with N(N−1), the number of pairs of in-flight requests, so doubling concurrency roughly quadruples that overhead. Past a critical point N_max = √((1−α)/β), throughput actually reverses, a phenomenon called retrograde scaling.

_Anyone tuning database concurrency limits can track scalability write-ups like this through daily.dev._

### Why did switching from Cloud SQL to Vitess vttablet cause a MySQL outage during a long-running transaction?

Cloud SQL's Managed Connection Pooling used a thread-pool layer that queued excess requests, while Vitess's vttablet uses a transaction pool that fails with an error after a timeout instead of queuing indefinitely. When a batch job held row locks for fifteen minutes, thousands of unrelated read requests piled up rebuilding long version-history snapshots, and the application retried aggressively since it had never handled pool-full errors before, worsening the outage.

_Teams migrating between managed database platforms can follow real incident breakdowns like this via daily.dev._

### How should I size a Vitess transaction pool to avoid MySQL throughput collapse under bursty traffic?

Rather than raising the pool cap to stop errors, size the pool close to what previously worked reliably (in this case reducing it from ten thousand back to roughly one thousand slots, matching the old Cloud SQL thread pool) and configure requests to queue with a bounded timeout instead of failing immediately. This kept concurrent MySQL statements under two hundred while sustaining sixty thousand queries per second, with only one rejected transaction during a 40,000 requests/s burst.

_Engineers tuning pool sizes and backpressure strategies can keep up with practical guidance like this on daily.dev._

## Similar posts on daily.dev

- [Parallelizing MySQL Snapshots](https://daily.dev/posts/parallelizing-mysql-snapshots-ntjvrxuao) · Materialize · 0 upvotes · 0 comments
- [Keeping a Postgres queue healthy — PlanetScale](https://daily.dev/posts/keeping-a-postgres-queue-healthy-planetscale-h5pvjk1vk) · Hacker News · 0 upvotes · 0 comments
- [Connection Pool Sizing, Measured: Why 48 Connections Beat 400](https://daily.dev/posts/connection-pool-sizing-measured-why-48-connections-beat-400-f0oqizynp) · The Infinity · 62 upvotes · 5 comments

---

Tags: [#database](https://daily.dev/tags/database), [#postgresql](https://daily.dev/tags/postgresql), [#mysql](https://daily.dev/tags/mysql)

[View this post on daily.dev](https://daily.dev/posts/concurrency-vs-throughput-why-more-parallelism-can-make-databases-slower-planetscale-n7hgcu0qz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Concurrency vs. Throughput: why more parallelism can make databases slower — PlanetScale","url":"https://daily.dev/posts/concurrency-vs-throughput-why-more-parallelism-can-make-databases-slower-planetscale-n7hgcu0qz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/concurrency-vs-throughput-why-more-parallelism-can-make-databases-slower-planetscale-n7hgcu0qz"},"datePublished":"2026-09-10T14:53:17.640Z","dateModified":"2026-10-15T02:22:49.672Z","description":"A production MySQL database running on PlanetScale's Vitess platform suffered a sixteen-minute outage after a batch job held row locks for fifteen minutes,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/68035f506c5ef4a24af83c2db58bfff2?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/68035f506c5ef4a24af83c2db58bfff2?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"PlanetScale","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"PlanetScale","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/09515c29cafc45618b3f117eab4fccf8","url":"https://daily.dev/squads/planetscale"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/concurrency-vs-throughput-why-more-parallelism-can-make-databases-slower-planetscale-n7hgcu0qz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"database,postgresql,mysql","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"PlanetScale","item":"https://daily.dev/squads/planetscale"},{"@type":"ListItem","position":3,"name":"Concurrency vs. Throughput: why more parallelism can make databases slower — PlanetScale"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/concurrency-vs-throughput-why-more-parallelism-can-make-databases-slower-planetscale-n7hgcu0qz#faq","mainEntity":[{"@type":"Question","name":"Why does increasing MySQL concurrency sometimes reduce overall throughput instead of increasing it?","acceptedAnswer":{"@type":"Answer","text":"Increasing concurrency can reduce throughput when coherency costs dominate, as described by Gunther's Universal Scalability Law: X(N) = γN / (1 + α(N−1) + βN(N−1)). The coherency term β grows with N(N−1), the number of pairs of in-flight requests, so doubling concurrency roughly quadruples that overhead. Past a critical point N_max = √((1−α)/β), throughput actually reverses, a phenomenon called retrograde scaling. Anyone tuning database concurrency limits can track scalability write-ups like this through daily.dev."}},{"@type":"Question","name":"Why did switching from Cloud SQL to Vitess vttablet cause a MySQL outage during a long-running transaction?","acceptedAnswer":{"@type":"Answer","text":"Cloud SQL's Managed Connection Pooling used a thread-pool layer that queued excess requests, while Vitess's vttablet uses a transaction pool that fails with an error after a timeout instead of queuing indefinitely. When a batch job held row locks for fifteen minutes, thousands of unrelated read requests piled up rebuilding long version-history snapshots, and the application retried aggressively since it had never handled pool-full errors before, worsening the outage. Teams migrating between managed database platforms can follow real incident breakdowns like this via daily.dev."}},{"@type":"Question","name":"How should I size a Vitess transaction pool to avoid MySQL throughput collapse under bursty traffic?","acceptedAnswer":{"@type":"Answer","text":"Rather than raising the pool cap to stop errors, size the pool close to what previously worked reliably (in this case reducing it from ten thousand back to roughly one thousand slots, matching the old Cloud SQL thread pool) and configure requests to queue with a bounded timeout instead of failing immediately. This kept concurrent MySQL statements under two hundred while sustaining sixty thousand queries per second, with only one rejected transaction during a 40,000 requests/s burst. Engineers tuning pool sizes and backpressure strategies can keep up with practical guidance like this on daily.dev."}}]}
```

