Three changes from the last two weeks move the needle on where your database and worker time actually goes: one shipped, one still just a discussion, and one bundled into a big release. All three surface in the same place, your span timings.
Doctrine DBAL rewrote its SQL parser (shipped)
Doctrine DBAL 4.6.0 rewrote its SQL parser, taking a typical query from roughly 20µs to 2µs of parse time (PR #7596). DBAL parses every statement it handles to find positional and named parameters, so that cost is paid on every query. Shaving ~18µs off will not dominate a genuinely slow query, but it is pure overhead removed from the hot path. The release also adds QueryBuilder::addComment() for attaching SQL comments to generated queries, which is handy for tagging queries so you can spot them in slow-query logs or in Scout’s database view.
node-postgres is 41% behind postgres 4 (open discussion)
On the Node.js side, an open issue, node-postgres #3856, flags that after the postgres (porsager) 4.0 rewrite, the community benchmark shows pg about 41% slower overall and pg-native about 45% slower, with the gap widening as row count grows (postgres 4 is roughly 2x faster at 500 rows). That points at row decoding rather than the wire protocol or the connection pool. Four open PRs aim to close it, with decoding integers, booleans, and text straight from row bytes as the most promising. Nothing has merged yet, so this is a discussion to watch, not a fix to install. But if you run pg on large result sets, it is a plausible reason your database spans on big queries look heavier than you would expect.
Celery got smarter about concurrency (shipped)
Celery 5.7.0 is a large stable release, and one performance-relevant change is --concurrency=auto with cgroup awareness: a worker can size its pool to the CPU actually available inside a container rather than to the host’s core count, the usual cause of over- or under-subscribed workers in Kubernetes. (5.7.0 also raises the minimum to Python 3.10.) If you have hand-tuned --concurrency to work around container CPU limits, this is worth a second look.
It all lands in your span timings
Parser overhead, row decoding, worker sizing: none of these is dramatic on its own, but each is the kind of steady cost that stays invisible until you measure it. At Scout, we break request and job time down by database and by component, so you can tell whether a query is slow because of the query or because of everything around it. Get started with Scout for free and watch where the time actually goes.
For application monitoring with errors, logs, and traces, Scout Monitoring provides the fastest insights without the bloat.