**Describe the situation**

```
SELECT * FROM test.hits INTO OUTFILE 'dump.csv' FORMAT CSV

8873898 rows in set. Elapsed: 32.487 sec. Processed 8.87 million rows, 8.46 GB (273.15 thousand rows/s., 260.42 MB/s.)
```

is bounded by single CPU core. Too slow :(
{
            initLogsOutputStream(
            progress_indication.clearProgressOutput(
            logs_out_stream->writeProfileEvents(block
            logs_out_stream->flush(
            profile_events.watch.restart(
            profile_events.last_block = {};
        }
        else
        {
            profile_events.last_block = block;
        }
    }
}
/// Flush all buffers.
void ClientBase::resetOutput()
{
    output_format.reset(
    logs_out_stream.reset(
    if (pager_cmd)
    {
        pager_cmd->in.close(
        pager_cmd->wait(
    }
    pager_cmd = nullptr;
    if (out_file_buf)
    {
        out_file_buf->next(
        out_file_buf.reset(
    }