All Products
Search
Document Center

ApsaraDB for OceanBase:DescribeSlowSQLList

Last Updated:Apr 29, 2024

You can call this operation to query the list of slow SQL statements

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
TenantIdstringYes

The ID of the tenant.

t2mr3oae0****
StartTimestringYes

The start time of the time range for querying slow SQL statements.
The value must be UTC time in the format of YYYY-MM-DDThh:mm:ssZ.

2021-06-13T15:40:43Z
EndTimestringYes

The end time of the time range for querying slow SQL statements.
The value must be UTC time in the format of YYYY-MM-DDThh:mm:ssZ.

2021-09-13T15:40:43Z
DbNamestringNo

The name of the database.

testdb
SearchKeyWordstringNo

The search keyword.

update
SearchParameterstringNo

The search parameter.

cputime
SearchRulestringNo

The search rule.

>
SearchValuestringNo

The search value.

0.01
SQLIdstringNo

The SQL ID, which uniquely identifies an SQL statement.

8D6E84****0B8FB1823D199E2CA1****
NodeIpstringNo

The IP address of the database node.

i-bp18qljorblo8es*****
PageNumberintegerNo

The number of rows to return on each page.

  • Maximum value: 100
  • Default value: 10
10
PageSizeintegerNo

The number of the page to return.

  • Start value: 1
  • Default value: 1
1
FilterConditionobjectNo

The filter condition.

[dbName:sys]
SortColumnstringNo

The sorted column.

cputime
SortOrderstringNo

The sorting rule.

desc

Response parameters

ParameterTypeDescriptionExample
object

The return result of the request.

TotalCountlong

The total count.

2
RequestIdstring

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
SlowSQLListobject []

The list of slow SQL statements.

Keylong

The sequence number of the returned SQL statement.

1
ExecPerSecondfloat

The number of executions per second.

163.0
SQLTextstring

The SQL text.

SELECT **** FROM **** WHERE **** = ? AND **** = ? ORDER BY **** ASC
MaxCpuTimefloat

The maximum CPU time.

257.967
BlockCacheHitlong

The number of block cache hits.

14
DecodeTimefloat

The time to wait for decoding.

0.0
RemotePlanslong

The number of remote plans.

0
RPCCountlong

The number of RPCs.

0
NetWaitTimefloat

The network latency.

0.0
DiskReadlong

The number of physical reads.

0
NodeIpstring

The IP address of the node.

i-bp18qljorblo8es*****
ConcurrencyWaitTimefloat

The wait time in concurrent execution.

0.0
MemstoreReadRowCountlong

The number of rows read from the memory.

527
DbNamestring

The name of the database.

testdb
AppWaitTimefloat

The wait time of the client.

0.0
ElapsedTimefloat

The average response time.

76.382
MissPlanslong

The number of plan misses.

0
AffectedRowslong

The number of rows affected.

0
ScheduleTimefloat

The scheduling duration.

0.0
Eventstring

The wait event.

mysql response wait client
TotalWaitTimefloat

The internal wait time.

10.966
ReturnRowslong

The number of rows returned.

1
ExecuteTimefloat

The internal execution time.

61.044
UserNamestring

The username.

tester
Executionslong

The number of executions.

89403
GetPlanTimefloat

The time spent in hard parsing.

0.052
CpuTimefloat

The average CPU time.

50.13
MaxElapsedTimefloat

The maximum response time.

260.044
SQLTypelong

The SQL type.

1
BlockIndexCacheHitlong

The number of block index cache hits.

4
RetryCountlong

The number of retries.

0
SQLIdstring

SQLID.

8D6E84****0B8FB1823D199E2CA1****
ClientIpstring

The IP address of the client.

1*2.***.1*3.***
BloomFilterCacheHitlong

The number of Bloom filter cache hits.

0
IOWaitTimefloat

The I/O wait time.

0.0
FailTimeslong

The number of failures.

0
QueueTimefloat

The queuing time.

15.275
RowCacheHitlong

The number of row cache hits.

0
LogicalReadlong

The number of logical reads.

19
SsstoreReadRowCountlong

The number of rows read from the disk.

43086

Examples

Sample success responses

JSONformat

{
  "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 timeSummary of changesOperation
No change history