Skip to content

Commit 68290ac

Browse files
committed
added some description to the example
1 parent f63937b commit 68290ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/client-v2/src/main/java/com/clickhouse/examples/client_v2/BigDatasetExamples.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ void readBigSetOfNumbers(int limit, int iterations, int concurrency) {
4141
.compressClientRequest(false)
4242
.setLZ4UncompressedBufferSize(1048576)
4343
.useNewImplementation(true)
44-
// .setSocketRcvbuf(1_000_000)
44+
// when network buffer and socket buffer are the same size - it is less IO calls and more efficient
45+
.setSocketRcvbuf(1_000_000)
4546
.setClientNetworkBufferSize(1_000_000)
4647
.setMaxConnections(20)
4748
.build();
4849
try {
49-
// client.ping(10); // warmup connections pool
50+
client.ping(10); // warmup connections pool. required once per client.
5051

5152
Runnable task = () -> {
5253
StringBuilder sb = new StringBuilder();

0 commit comments

Comments
 (0)