You can call this operation to query the list of slow SQL statements
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TenantId | string | Yes | The ID of the tenant. | t2mr3oae0**** |
StartTime | string | Yes | The start time of the time range for querying slow SQL statements. | 2021-06-13T15:40:43Z |
EndTime | string | Yes | The end time of the time range for querying slow SQL statements. | 2021-09-13T15:40:43Z |
DbName | string | No | The name of the database. | testdb |
SearchKeyWord | string | No | The search keyword. | update |
SearchParameter | string | No | The search parameter. | cputime |
SearchRule | string | No | The search rule. | > |
SearchValue | string | No | The search value. | 0.01 |
SQLId | string | No | The SQL ID, which uniquely identifies an SQL statement. | 8D6E84****0B8FB1823D199E2CA1**** |
NodeIp | string | No | The IP address of the database node. | i-bp18qljorblo8es***** |
PageNumber | integer | No | The number of rows to return on each page.
| 10 |
PageSize | integer | No | The number of the page to return.
| 1 |
FilterCondition | object | No | The filter condition. | [dbName:sys] |
SortColumn | string | No | The sorted column. | cputime |
SortOrder | string | No | The sorting rule. | desc |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 2,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"SlowSQLList": [
{
"Key": 1,
"ExecPerSecond": 163,
"SQLText": "SELECT **** FROM **** WHERE **** = ? AND **** = ? ORDER BY **** ASC",
"MaxCpuTime": 257.967,
"BlockCacheHit": 14,
"DecodeTime": 0,
"RemotePlans": 0,
"RPCCount": 0,
"NetWaitTime": 0,
"DiskRead": 0,
"NodeIp": "i-bp18qljorblo8es*****",
"ConcurrencyWaitTime": 0,
"MemstoreReadRowCount": 527,
"DbName": "testdb",
"AppWaitTime": 0,
"ElapsedTime": 76.382,
"MissPlans": 0,
"AffectedRows": 0,
"ScheduleTime": 0,
"Event": "mysql response wait client",
"TotalWaitTime": 10.966,
"ReturnRows": 1,
"ExecuteTime": 61.044,
"UserName": "tester",
"Executions": 89403,
"GetPlanTime": 0.052,
"CpuTime": 50.13,
"MaxElapsedTime": 260.044,
"SQLType": 1,
"BlockIndexCacheHit": 4,
"RetryCount": 0,
"SQLId": "8D6E84****0B8FB1823D199E2CA1****",
"ClientIp": "1*2.***.1*3.***",
"BloomFilterCacheHit": 0,
"IOWaitTime": 0,
"FailTimes": 0,
"QueueTime": 15.275,
"RowCacheHit": 0,
"LogicalRead": 19,
"SsstoreReadRowCount": 43086
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|