Skip to content

Clarify QAN data sources and prepared-statement visibility for MySQL#5600

Open
michaelcoburn wants to merge 1 commit into
percona:mainfrom
michaelcoburn:docs-qan-prepared-statements-visibility
Open

Clarify QAN data sources and prepared-statement visibility for MySQL#5600
michaelcoburn wants to merge 1 commit into
percona:mainfrom
michaelcoburn:docs-qan-prepared-statements-visibility

Conversation

@michaelcoburn

Copy link
Copy Markdown
Contributor

What

Adds a short, expectation-setting note so readers recognize why PMM Query Analytics (QAN) may show incomplete data for MySQL prepared-statement workloads.

Why

Server-side prepared statements (used by most application drivers, e.g. JDBC) are exposed by upstream MySQL to Performance Schema with placeholder parameters (?) rather than literal values. As a result, QAN query examples appear as placeholders and EXPLAIN is unavailable for them. This is upstream MySQL behavior, not a PMM limitation. The note helps users self-diagnose instead of assuming data is missing.

Because this page lets users choose the query source, the note also points out that the file-based slow query log records literal values, so it gives fuller examples and EXPLAIN than Performance Schema.

Scope

Documentation only — a single admonition in the "Choose and configure a source" section of documentation/docs/install-pmm/install-pmm-client/connect-database/mysql/mysql.md. Part of a coordinated set of PRs across pmm, psmysql-docs, pxc-docs, k8sps-docs, and k8spxc-docs.

DCO: signed off.

Query Analytics reads only from a file-based slow query log or Performance Schema (not the general log or log_output=TABLE). With the Performance Schema source, server-side prepared statements show placeholder examples and no EXPLAIN, because of how upstream MySQL exposes them; the file-based slow query log has real values.

Signed-off-by: Michael Coburn <michael.coburn@percona.com>
@michaelcoburn michaelcoburn requested a review from a team as a code owner July 6, 2026 19:13
@github-actions github-actions Bot added the documentation Documentation changes label Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant