ClickHouse.Client icon indicating copy to clipboard operation
ClickHouse.Client copied to clipboard

How to get client statistics with query results

Open yusufozturk opened this issue 1 year ago • 1 comments

First of all, thank you for this library.

We would like to get client statistics with query results like:

"statistics": { "elapsed": 0.000256913, "rows_read": 0, "bytes_read": 0 }

so we can show query details like how much time it took on Clickhouse, how much GB of data it processed etc. It will be a perfect details for the end users so they can realize how much impact their query creates.

Thanks.

yusufozturk avatar Aug 11 '22 12:08 yusufozturk

For reference: https://github.com/ClickHouse/clickhouse-go/issues/639

Thanks.

yusufozturk avatar Aug 11 '22 12:08 yusufozturk

See ClickHouseCommand.QueryStats field in version 5.1.1

DarkWanderer avatar Sep 19 '22 18:09 DarkWanderer