Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 96c1243

Browse files
author
Tsimafei Bredau
committed
add new connection_open_strategy option's description to README
1 parent dfa8487 commit 96c1243

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ Golang SQL database driver for [Yandex ClickHouse](https://clickhouse.yandex/)
1818
* no_delay - disable/enable the Nagle Algorithm for tcp socket (default is 'true' - disable)
1919
* alt_hosts - comma separated list of single address host for load-balancing
2020
* connection_open_strategy - random/in_order (default random).
21-
* random - choose random server from set
22-
* in_order - first live server is choosen in specified order
21+
* random - choose random server from set
22+
* in_order - first live server is choosen in specified order
23+
* time_random - choose random(based on current time) server from set. This option differs from `random` in that randomness is based on current time rather than on amount of previous connections.
2324
* block_size - maximum rows in block (default is 1000000). If the rows are larger then the data will be split into several blocks to send them to the server. If one block was sent to the server, the data will be persisted on the server disk, we can't rollback the transaction. So always keep in mind that the batch size no larger than the block_size if you want atomic batch insert.
2425
* pool_size - maximum amount of preallocated byte chunks used in queries (default is 100). Decrease this if you experience memory problems at the expense of more GC pressure and vice versa.
2526
* debug - enable debug output (boolean value)

0 commit comments

Comments
 (0)