You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/writeAPIBlocking.go
+14
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ import (
21
21
// to internal buffer. If length ot the buffer is equal to the batch-size (set in write.Options), the buffer is sent to the server
22
22
// and the result of the operation is returned.
23
23
// When a point is written to the buffer, nil error is always returned.
24
+
// Flush() can be used to trigger sending of batch when it doesn't have the batch-size.
24
25
//
25
26
// Synchronous writing is intended to use for writing less frequent data, such as a weather sensing, or if there is a need to have explicit control of failed batches.
26
27
@@ -42,6 +43,8 @@ type WriteAPIBlocking interface {
42
43
// EnableBatching turns on implicit batching
43
44
// Batch size is controlled via write.Options
44
45
EnableBatching()
46
+
// Flush forces write of buffer if batching is enabled, even buffer doesn't have the batch-size.
0 commit comments