v.24.7Improvement

Added Profile Event for SELECT Queries Using Primary Key

Added profile event SelectQueriesWithPrimaryKeyUsage which indicates how many SELECT queries use the primary key to evaluate the WHERE clause. #64492 (0x01f).
Added a new profile event SelectQueriesWithPrimaryKeyUsage that tracks how many SELECT queries utilize the primary key for evaluating the WHERE clause.

Why it matters

This feature helps users monitor and understand the usage of primary keys in SELECT queries, allowing for performance analysis and optimization by identifying queries that benefit from primary key indexing.

How to use it

Users can enable this feature by accessing the SelectQueriesWithPrimaryKeyUsage profile event through ClickHouse's profiling and monitoring tools to track the count of SELECT queries using primary keys in their WHERE conditions.