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).Why it matters
This feature helps users monitor and understand the usage of primary keys inSELECT 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 theSelectQueriesWithPrimaryKeyUsage profile event through ClickHouse's profiling and monitoring tools to track the count of SELECT queries using primary keys in their WHERE conditions.