v.20.3Improvement

Initialize Query Profiler for All Threads in a Group

Initialize query profiler for all threads in a group, e.g. it allows to fully profile insert-queries #8820 (Ivan)
Initialize query profiler for all threads in a query execution group, enabling full profiling of complex queries such as insert-queries.

Why it matters

This feature allows comprehensive profiling of queries that involve multiple threads working together, like insert operations. It improves the accuracy and completeness of performance diagnostics by aggregating profiling data from all threads within the query group.

How to use it

The query profiler is automatically initialized for all threads within a query group, so users can simply run their queries as usual. For example, while executing an INSERT query, the profiler will collect and aggregate metrics from all threads involved without additional configuration.