Closed FreePhoenix888 closed 1 year ago
@DarkWanderer
https://github.com/DarkWanderer/ClickHouse.Client/commit/0773e79574a063c0d6bab27cfe2ddf192f2ddc35 By looking at the commit message I guess it is possible to change this timeout
I am not sure if this error was thrown by server or client
You are trying to write full data set as a single batch: BatchSize = candles.Count
- this will not work for very large amounts of data. Recommended batch size is 100'000-1'000'000 (which will also make use of parallel insertion feature)
You can set Timeout
in connection string, or provide a pre-configure HttpClient
. Either way, inserting in really large batches does not allow ClickHouse to work well and it feels better if there is a reasonable batch size (as mentioned above), from perspective of part size on disk and cluster replication
Function which fails
Error