You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was going thru following link and came across ASYNC_INSERTS for http client.
Is this also true while using clickhouse-http-client. if yes, how we can enable it. Also i tried using server property to be enabled in DB's config file but it does not seems to work as intended. Am i missing some thing
@zhicwu Looks like the test code enables async in Jdbc API wich is not ideal for heavy inserts. Can you explain how to enable it for a pure http client with ClickHouseNode/ClickHouseClient.send?
Hi @ermadan, you can use ClickHouseRequest.option(ClickHouseHttpOption.CUSTOM_PARAMS, "async_insert=1,wait_for_async_insert=0") to enable async insert, and then use ClickHouseClient.send to execute the query. Alternatively, you can specify the settings in connection string like ClickHouseNode.of("http://HOST.clickhouse.cloud:8443/?user=default&password=PASSWORD&ssl=true&custom_http_params=async_insert=1,wait_for_async_insert=0").
If you don't want to be limited to http protocol or any client-side change, you may check here and use INSERT statement with settings or profile instead.
I was going thru following link and came across
ASYNC_INSERTS
for http client.Is this also true while using clickhouse-http-client. if yes, how we can enable it. Also i tried using server property to be enabled in DB's config file but it does not seems to work as intended. Am i missing some thing
https://clickhouse.com/blog/click-house-v2111-released
How can i monitor if async inserts are buffered and batched up using above property in INSERT cases.
The text was updated successfully, but these errors were encountered: