-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Clickhouse - Use std batch api to insert data #18090
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
no, when use batch processor, exporter will do batch insert. opentelemetry-collector-contrib/exporter/clickhouseexporter/README.md Lines 17 to 20 in 650e624
opentelemetry-collector-contrib/CONTRIBUTING.md Lines 154 to 159 in 650e624
|
How does it work? Isn't |
clickhouse-go driver do that, when start a tx, |
@hanjm great, thanks for clarifying. |
Component(s)
exporter/clickhouse
Is your feature request related to a problem? Please describe.
Hi, according to https://github.com/StarpTech/opentelemetry-collector-contrib/blob/feat/improve_clickhouse_conn_mgmnt/exporter/clickhouseexporter/exporter_logs.go#L94 we issue a request per log / trace. Is there any reason for that? This must be very inefficient. We can improve it by switching to https://github.com/ClickHouse/clickhouse-go/blob/main/examples/std/batch.go
Describe the solution you'd like
Use prepared statement https://github.com/ClickHouse/clickhouse-go/blob/main/examples/std/batch.go
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: