New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to insert local table from local on cluster efficiently? #50917
Comments
if that is a frequent task, you can write a simple script like:
or you can just do it manually. AFAWK, there is no such one-line command. |
fine...we do get a script like :
but, this cause another question: synchronously will cost much time, or parallel in background will lose the monitor. |
is it meant to be a backup process ? then consider the backup feature or the tool clickhouse-backup. |
Have you tried parallel_distributed_insert_select=2? |
this time "parallel_distributed_insert_select=2" is helpful but last time i tried was useless with something wrong. |
not good enough
when i exec on local, it cost about 400 seconds, but on distribute with settings parallel_distributed_insert_select=2 caused Timtout Exception |
our table DDL like this:
in this case, we got table 'my_table_a' and 'my_table_b' with both local and distributed , on cluster
now , we need to run process like :
or write in this way, but expect to run in local on cluster , like the first one
We had checked the Docs, find settings
parallel_distributed_insert_select
, but it cannot do thisIf insert into distributed tables , it will collect at one point and do shardings to other points
The text was updated successfully, but these errors were encountered: