@Yegor It's not a view, just a "ordinary" Table. I created a Log Table and used the client to import a 300GB TSV file.
@Alex Where can I set this option on the server-side? I looked at the guide, but was not able to find something. So I tried to put
<max_memory_usage>50GB</max_memory_usage>
into my config.xml as child of the xandex-root element (without success). Is it the unit (should I use bytes instead)?
However, I was able to set it on the client-side and it looks good (the query is still running :) ). Thanks for the INTO OUTFILE hint, this is really nice. Is there a possibility to split & compress the output? At the moment I do it like this:
clickhouse-client --max_memory_usage=300000000000 --query="SELECT * FROM videos FORMAT CSV" | split -d -C 4GB --filter='pigz > $FILE.gz' -a 4 - /path/to/output/folder/