clickhouse-rs icon indicating copy to clipboard operation
clickhouse-rs copied to clipboard

Bulk inserts

Open let4be opened this issue 3 years ago • 1 comments

Are bulk inserts supported or will it simply generate a lot of separate inserts? There is a huge performance difference between those in clickhouse, I see my inserts being unreasonably slow(3 seconds to inserts 100 rows)... Seems like this lib can only generate separate insert statements...

let4be avatar May 02 '21 10:05 let4be

This lib tries to inserts the whole block you pass per one request or split the block if rows number greater than 1 048 576.

Could you show an example of code witch reproduce the problem?

suharev7 avatar May 02 '21 12:05 suharev7