Skip to content

Is Go driver thread safe to be used from few goroutines? #1361

Closed Answered by jkaflik
ribtoks asked this question in Q&A
Discussion options

You must be logged in to vote

@ribtoks

clickhouse-go is not thread-safe guaranteed, however, there shouldn't be any consequence from using it across multiple goroutines.
This is true as long you don't reuse single Batch (clickhouse-go API) or single Tx (database/sql) across multiple goroutines.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ribtoks
Comment options

Answer selected by ribtoks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants