phpClickHouse
phpClickHouse copied to clipboard
Async insert without CSV?
Is it possible to have a method for asynchronous insert from an array of data? I would like to write to my clickhouse instance without waiting for a response from the DB.
@kicks66 it's possible,
$client = new Client();
// adjust settings accordingly
$client->settings()->apply([
"async_insert" => 1,
"wait_for_async_insert" => 0
]);
$client->insert(.....);