v.23.1Improvement

Optimize Metrics for Distributed Async INSERT

Optimize and fix metrics for Distributed async INSERT. #44922 (Azat Khuzhin).
Optimization and fixes for metrics related to Distributed async INSERT operations in ClickHouse.

Why it matters

This feature improves the accuracy and performance of performance metrics when using asynchronous INSERTs into Distributed tables. It addresses issues with metric reporting and optimizes the monitoring of async INSERT workflows, providing users better insight and reliability for distributed data ingestion processes.

How to use it

The improvements are applied automatically to existing Distributed async INSERT operations. Users benefit from enhanced metric tracking without requiring changes in their INSERT statements or configurations.