Mengembalikan detail semua indeks yang hilang pada instans.
Deskripsi operasi
-
This operation is applicable only to ApsaraDB RDS for SQL Server instances.
-
If you use an Alibaba Cloud SDK or Database Autonomy Service (DAS) SDK to call this operation, we recommend that you use the latest version of the SDK.
-
If you use an SDK to call the API operations of DAS, you must set the region ID to cn-shanghai.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hdm:GetInstanceMissingIndexList |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID Instansiasi basis data. Catatan
Hanya instans ApsaraDB RDS for SQL Server yang didukung. |
rm-t4nfalp2ap421**** |
| PageNo |
string |
No |
Nomor halaman. Halaman dimulai dari halaman 1. Nilai default: 1. |
1 |
| PageSize |
string |
No |
Jumlah entri per halaman. Nilai default: 10. |
10 |
| ObjectName |
string |
No |
Nama objek. |
bas_customer |
| ReservedSize |
string |
No |
Kondisi kueri berdasarkan ukuran tabel. |
>=|100 |
| RowCount |
string |
No |
Kondisi kueri berdasarkan jumlah baris tabel. |
>=|100000 |
| ReservedPages |
string |
No |
Kondisi kueri berdasarkan jumlah total halaman. |
>=|100 |
| IndexCount |
string |
No |
Kondisi kueri berdasarkan jumlah indeks. |
>=|8 |
| UniqueCompiles |
string |
No |
Kondisi kueri berdasarkan jumlah kompilasi. |
>=|10000 |
| UserSeeks |
string |
No |
Kondisi kueri berdasarkan jumlah seek. |
>=|1000 |
| UserScans |
string |
No |
Kondisi kueri berdasarkan jumlah scan. |
>=|10000 |
| AvgTotalUserCost |
string |
No |
Kondisi kueri berdasarkan penghematan biaya rata-rata. |
<=|8 |
| AvgUserImpact |
string |
No |
Kondisi kueri berdasarkan peningkatan performa. |
>|10000 |
| StartTime |
string |
No |
Waktu mulai seek terakhir. |
1679414400000 |
| EndTime |
string |
No |
Waktu akhir seek terakhir. |
1681869544000 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Code |
string |
The HTTP status code returned. |
200 |
| Message |
string |
The returned message. |
Successful |
| Data |
object |
The detailed information. |
|
| List |
array<object> |
The returned data. |
|
|
object |
|||
| AvgTotalUserCost |
number |
The average cost savings. |
4.67 |
| AvgUserImpact |
number |
The performance improvement, in percentage. |
98.3 |
| DatabaseName |
string |
The database name. |
testdb |
| EqualityColumns |
string |
The index columns included in the equal operation. |
col1,col2,col3 |
| IncludedColumns |
string |
The columns on which indexes are missing. |
col3,col4 |
| IndexCount |
integer |
The number of indexes. |
1 |
| LastUserSeek |
integer |
The last seek time of a user. |
1702023327000 |
| ObjectName |
string |
The object name. |
stu |
| ReservedPages |
integer |
The total number of returned pages. |
5025 |
| ReservedSize |
number |
The table size. |
39.26 |
| RowCount |
integer |
The number of table rows. |
226945 |
| SchemaName |
string |
The schema name. |
dbo |
| SystemScans |
integer |
The number of scans. |
0 |
| SystemSeeks |
integer |
The number of seeks. |
0 |
| UniqueCompiles |
integer |
The number of compilations. |
2392 |
| UserScans |
integer |
The number of scans performed by users. |
0 |
| UserSeeks |
integer |
The number of seeks performed by users. |
1081 |
| InequalityColumns |
string |
The index columns included in the not equal operation. |
2392 |
| CreateIndex |
string |
The statement used to create the missing indexes. |
CREATE INDEX [IX_CLOUDDBA_school_dbo_stu@col1_@col2] ON [school].[dbo].[stu]([col1],[col2],[col3]) INCLUDE ([col4],[col5]) WITH (FILLFACTOR = 90, ONLINE = OFF); |
| PageNo |
integer |
The page number of the page returned. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| Total |
integer |
The total number of entries returned. |
16 |
| RequestId |
string |
The request ID. |
0A74B755-98B7-59DB-8724-1321B394**** |
| Success |
string |
Indicates whether the request is successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"Code": "200",
"Message": "Successful",
"Data": {
"List": [
{
"AvgTotalUserCost": 4.67,
"AvgUserImpact": 98.3,
"DatabaseName": "testdb",
"EqualityColumns": "col1,col2,col3",
"IncludedColumns": "col3,col4",
"IndexCount": 1,
"LastUserSeek": 1702023327000,
"ObjectName": "stu",
"ReservedPages": 5025,
"ReservedSize": 39.26,
"RowCount": 226945,
"SchemaName": "dbo",
"SystemScans": 0,
"SystemSeeks": 0,
"UniqueCompiles": 2392,
"UserScans": 0,
"UserSeeks": 1081,
"InequalityColumns": "2392",
"CreateIndex": "CREATE INDEX [IX_CLOUDDBA_school_dbo_stu@col1_@col2] ON [school].[dbo].[stu]([col1],[col2],[col3]) INCLUDE ([col4],[col5]) WITH (FILLFACTOR = 90, ONLINE = OFF);"
}
],
"PageNo": 1,
"PageSize": 10,
"Total": 16
},
"RequestId": "0A74B755-98B7-59DB-8724-1321B394****",
"Success": "true"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The request parameters are invalid. | |
| 403 | NoPermission | You are not authorized to do this action. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.