Creating a SQL Insights Task
Scenarios
SQL Insights allows you to query all executed SQL statements, analyze and search for the tables that are accessed and updated most frequently, and identify SQL statements that have the longest lock wait. This function helps you quickly detect exceptions.
Constraints
- You need to enable Collect All Query Logs before using SQL Insights.
- After Collect All Query Logs is disabled, new SQL statements will not be collected anymore and the collected SQL data will be deleted.
- If there is a buffer overrun, some data cannot be recorded.
- Any SQL statement that exceeds 4,096 bytes will not be recorded by default.
Procedure
- Log in to the RDS console.
- Click
in the upper left corner and select a region. - On the Instances page, click the target instance name.
- In the navigation pane, choose SQL Analysis and Tuning under DBA Assistant.
- Click the SQL Insights tab.
- Click
next to Collect All Query Logs. To disable this function, click Log Settings in the upper right corner, toggle off the Collect All Query Logs switch, and click OK.
Collecting all SQL statements generates a performance loss of no more than 5%.
Figure 1 Log settings
- Click Create Task. In the displayed dialog box, specify Time Range, whether to synchronize to other instances, and other configuration items, and click OK. Figure 2 Creating a SQL Insights Task
- In the task list, click Details in the Operation column to view task details.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot