pingcap / pingcap/tidb

TiDB will record `StmtReset` and `StmtClose` as the statement latency

Open
#65,551 5 comments 0 reactions 1 assignee Claimed by @YangKeao View on GitHub
severity/minor sig/sql-infra type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

TiDB will record `StmtReset` and `StmtClose` as the statement latency, so the latency metrics are usually smaller than the real value. Maybe we should only analyze the `StmtExecute` for `PREPARE/EXECUTE` protocol.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.