Skip to content

Commit b81bde2

Browse files
committed
made constant for buffer size
1 parent 4e23300 commit b81bde2

File tree

1 file changed

+3
-1
lines changed
  • client-v2/src/main/java/com/clickhouse/client/api

1 file changed

+3
-1
lines changed

client-v2/src/main/java/com/clickhouse/client/api/Client.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,8 @@ public Client build() {
801801
return new Client(this.endpoints, this.configuration, this.useNewImplementation, this.sharedOperationExecutor);
802802
}
803803

804+
private static final int DEFAULT_NETWORK_BUFFER_SIZE = 300_000;
805+
804806
private void setDefaults() {
805807

806808
// set default database name if not specified
@@ -858,7 +860,7 @@ private void setDefaults() {
858860
}
859861

860862
if (!configuration.containsKey("client_network_buffer_size")) {
861-
setClientNetworkBufferSize(8192);
863+
setClientNetworkBufferSize(DEFAULT_NETWORK_BUFFER_SIZE);
862864
}
863865

864866
if (!configuration.containsKey(ClickHouseClientOption.RETRY.getKey())) {

0 commit comments

Comments
 (0)