I have found these related issues/pull requests
#3055
Description
Hi, after upgrade to sqlx 0.9.0 I've noticed that some queries started executing ~41-43ms when running locally (with sqlx 0.8.2 they used to be ~2ms).
Here's a reproduction example: https://gist.github.com/dmitryvk/c7c5ff1578ae1525d9197bce1ca597a7 (the real code is much more complicated).
40ms delay is caused by Nagle's algorithm, and sqlx previously used to disable it (#3055), but it was removed recently (#4022).
Reproduction steps
Compile and run code from https://gist.github.com/dmitryvk/c7c5ff1578ae1525d9197bce1ca597a7 against a local MariaDB/MySQL instance.
SQLx version
0.9.0
Enabled SQLx features
"mysql", "runtime-tokio", "tls-rustls"
Database server and version
MariaDB 11.8.5
Operating system
Ubuntu 26.04
Rust version
rustc 1.97.0 (2d8144b78 2026-07-07)
I have found these related issues/pull requests
#3055
Description
Hi, after upgrade to sqlx 0.9.0 I've noticed that some queries started executing ~41-43ms when running locally (with sqlx 0.8.2 they used to be ~2ms).
Here's a reproduction example: https://gist.github.com/dmitryvk/c7c5ff1578ae1525d9197bce1ca597a7 (the real code is much more complicated).
40ms delay is caused by Nagle's algorithm, and sqlx previously used to disable it (#3055), but it was removed recently (#4022).
Reproduction steps
Compile and run code from https://gist.github.com/dmitryvk/c7c5ff1578ae1525d9197bce1ca597a7 against a local MariaDB/MySQL instance.
SQLx version
0.9.0
Enabled SQLx features
"mysql", "runtime-tokio", "tls-rustls"
Database server and version
MariaDB 11.8.5
Operating system
Ubuntu 26.04
Rust version
rustc 1.97.0 (2d8144b78 2026-07-07)