Skip to content
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

Async insert without CSV? #225

Open
kicks66 opened this issue Aug 16, 2024 · 1 comment
Open

Async insert without CSV? #225

kicks66 opened this issue Aug 16, 2024 · 1 comment

Comments

@kicks66
Copy link

kicks66 commented Aug 16, 2024

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.

@uksarkar
Copy link

uksarkar commented Aug 23, 2024

@kicks66 it's possible,

$client = new Client();

// adjust settings accordingly
$client->settings()->apply([
        "async_insert" => 1,
        "wait_for_async_insert" => 0
]);

$client->insert(.....);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants