pingcap / pingcap/tidb

measure StmtPrepare/StmtReset/StmtClose command into execute time

Open
#34,484 0 comments 0 reactions 1 assignee Claimed by @qw4990 View on GitHub
epic/plan-cache sig/planner type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

Currently the handle duration of the StmtPrepare/StmtReset/StmtClose is not measured into execute time, causing the total db time is exceeding get token + parse + compile + execute.

suggest to add the handle duration of the StmtPrepare/StmtReset/StmtClose into execute time.

![TsWiTP3LP1](https://user-images.githubusercontent.com/2316425/167376882-078fa20d-21da-47a4-8f0a-5c5651f748cc.jpg)

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.