**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 :(
const auto & array_values = typeid_cast<const ColumnUInt64 &>(*block.getByName("value").column).getData(
        const auto * user_time_name = ProfileEvents::getName(ProfileEvents::UserTimeMicroseconds
        const auto * system_time_name = ProfileEvents::getName(ProfileEvents::SystemTimeMicroseconds
        HostToThreadTimesMap thread_times;
        for (size_t i = 0; i < rows; ++i)
        {
            auto thread_id = array_thread_id[i];
            auto host_name = host_names.getDataAt(i).toString(
            if (thread_id != 0)
                progress_indication.addThreadIdToList(host_name, thread_id
            auto event_name = names.getDataAt(i
            auto value = array_values[i];
            if (event_name == user_time_name)
            {
                thread_times[host_name][thread_id].user_ms = value;
            }
            else if (event_name == system_time_name)
            {
                thread_times[host_name][thread_id].system_ms = value;
            }
            else if (event_name == MemoryTracker::USAGE_EVENT_NAME)
            {
                thread_times[host_name][thread_id].memory_usage = value;
            }
        }
        progress_indication.updateThreadEventData(thread_times
    }
    if (profile_events.print)
    {
        if (profile_events.watch.elapsedMilliseconds() >= profile_events.delay_ms)