@@ -39,6 +39,11 @@ func int64ToBytes(i int64) []byte {
3939 return buf
4040}
4141
42+ // Retain temporary external client library copies that are created for enabling multi-threading.
43+ func (o NetworkOptions ) SetRetainClientLibraryCopies () error {
44+ return o .setOpt (67 , nil )
45+ }
46+
4247// Deprecated
4348//
4449// Parameter: IP:PORT
@@ -617,12 +622,12 @@ const (
617622 StreamingModeWantAll StreamingMode = - 1
618623
619624 // The default. The client doesn't know how much of the range it is likely
620- // to used and wants different performance concerns to be balanced. Only a
621- // small portion of data is transferred to the client initially (in order to
622- // minimize costs if the client doesn't read the entire range), and as the
623- // caller iterates over more items in the range larger batches will be
624- // transferred in order to minimize latency. After enough iterations, the
625- // iterator mode will eventually reach the same byte limit as “WANT_ALL“
625+ // to used and wants different performance concerns to be balanced.
626+ // Only a small portion of data is transferred to the client initially (in
627+ // order to minimize costs if the client doesn't read the entire range), and
628+ // as the caller iterates over more items in the range larger batches will
629+ // be transferred in order to minimize latency. After enough iterations,
630+ // the iterator mode will eventually reach the same byte limit as “WANT_ALL“
626631 StreamingModeIterator StreamingMode = 0
627632
628633 // Infrequently used. The client has passed a specific row limit and wants
@@ -632,25 +637,25 @@ const (
632637 // mode is used.
633638 StreamingModeExact StreamingMode = 1
634639
635- // Infrequently used. Transfer data in batches small enough to not be much
636- // more expensive than reading individual rows, to minimize cost if
640+ // Infrequently used. Transfer data in batches small enough to not be
641+ // much more expensive than reading individual rows, to minimize cost if
637642 // iteration stops early.
638643 StreamingModeSmall StreamingMode = 2
639644
640645 // Infrequently used. Transfer data in batches sized in between small and
641646 // large.
642647 StreamingModeMedium StreamingMode = 3
643648
644- // Infrequently used. Transfer data in batches large enough to be, in a
645- // high-concurrency environment, nearly as efficient as possible. If the
646- // client stops iteration early, some disk and network bandwidth may be
647- // wasted. The batch size may still be too small to allow a single client to
648- // get high throughput from the database, so if that is what you need
649+ // Infrequently used. Transfer data in batches large enough to be,
650+ // in a high-concurrency environment, nearly as efficient as possible.
651+ // If the client stops iteration early, some disk and network bandwidth may
652+ // be wasted. The batch size may still be too small to allow a single client
653+ // to get high throughput from the database, so if that is what you need
649654 // consider the SERIAL StreamingMode.
650655 StreamingModeLarge StreamingMode = 4
651656
652- // Transfer data in batches large enough that an individual client can get
653- // reasonable read bandwidth from the database. If the client stops
657+ // Transfer data in batches large enough that an individual client can
658+ // get reasonable read bandwidth from the database. If the client stops
654659 // iteration early, considerable disk and network bandwidth may be wasted.
655660 StreamingModeSerial StreamingMode = 5
656661)
0 commit comments