v.24.7New Feature

Add --memory-usage Option to Non-Interactive Client Mode

Add --memory-usage option to client in non-interactive mode. #66393 (vdimir).
Added the --memory-usage option to the ClickHouse client for non-interactive mode to display memory usage statistics.

Why it matters

This feature enables users to monitor and analyze the memory consumption of queries executed in non-interactive mode, helping to optimize resource usage and troubleshoot memory-related issues effectively.

How to use it

When running queries with the ClickHouse client in non-interactive mode, add the --memory-usage option to the command line. For example:

clickhouse client --query="<query>" --memory-usage