From c1e0446c4635e04a4fa75a7d1a5a4035a5fe4194 Mon Sep 17 00:00:00 2001 From: Simon J Mudd Date: Thu, 26 Mar 2026 11:15:51 +0100 Subject: [PATCH] Add comment in README.md about using interpolateParams=true --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 174ecab..96609ea 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,13 @@ $ export MYSQL_DSN='user:pass@tcp(host:3306)/performance_schema?tls=skip-verify& $ ps-top ``` +A second use case of the `MYSQL_DSN` setting is to avoid the golang +driver executing some statements using prepare and close statement +steps. This adds a tiny bit of extra latency for queries sent to +the backend database. Adding the additional setting +`interpolateParams=true` to the DSN will avoid these stages thus +reducing the number of round trips made when making queries. + #### MySQL/MariaDB configuration The `performance_schema` database **MUST** be enabled for `ps-top` to work.