> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-fix-nav-issues.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 如何在不返回任何行的情况下测量查询处理时间

> 了解如何在 ClickHouse 中使用 `FORMAT Null` 选项，在不向客户端返回任何行的情况下测量查询处理时间。

<div id="question">
  ## 问题
</div>

我的查询会返回很多行，但我只关心查询处理时间。如何省略查询结果输出并查看查询处理时间？

<div id="answer">
  ## 答案
</div>

在查询末尾加上 `FORMAT Null`，将输出格式设置为 `Null`。这样可以防止数据传输到客户端。

例如：

```sql theme={null}
SELECT
    customer_id,
    count() AS total,
    any(review_headline)
FROM amazon_reviews
GROUP BY customer_id
ORDER BY total DESC
FORMAT Null
```

响应将返回已处理的行数和耗时，但返回的结果行数为 0：

```response theme={null}
0 rows in set. Elapsed: 25.288 sec. Processed 222.04 million rows, 13.50 GB (8.78 million rows/s., 533.77 MB/s.)
```
