-
Notifications
You must be signed in to change notification settings - Fork 556
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
Use batch.Flush() only generate one 'QueryStart' log in system.query_log #1271
Comments
|
how to trigger QueryFinish when use batch.Flush(), I need reuse the batch |
What is your goal of "reusing batch"? |
|
There is no need to close/reinitialize connection after every Line 35 in dd94572
Would you like to contribute with enhancement? |
I had create pull request, but some system error happened, like #1265 |
Observed
1.reuse batch and Flush() data, only generate one 'QueryStart' log in system.query_log, no QueryFinish log
2.successfully flush data into server, but query immediately not return last inserts result, need wait some seconds can query result.
Expected behaviour
1.like batch.Send(), Flush success will generate QueryFinish log
2.What config control the frequency of insert when use flush data into table can be query successed
Code example
query_log
Details
Environment
clickhouse-go
version: v2.22.4database/sql
compatible driverCREATE TABLE
statements for tables involved:The text was updated successfully, but these errors were encountered: