Slow Query Statement Monitoring

Scenario

The SQL statement query in ClickHouse is slow because the conditions such as partitions, where conditions, and indexes of SQL statements are set improperly. As a result, the overall performance of the database is affected. To solve this problem, MRS provides the function of monitoring slow ClickHouse query statements.

Ongoing Slow Queries

You can query information about slow SQL statements that are being executed but do not return any result.

Completed Queries

You can query information about slow SQL statements that have been executed and returned results.

Log in to FusionInsight Manager and choose Cluster > Services > ClickHouse. On the displayed page, click the Query Management tab and then the Completed Queries tab.

For details about slow query parameters and filter conditions, see Table 1 and Table 2, respectively.