Class TuningOptions
Options for performance tuning specific to the .NET SDK.
Namespace: Couchbase
Assembly: Couchbase.NetClient.dll
Syntax
public class TuningOptions : object
Properties
| Improve this Doc View SourceMaximumInFlightOperationsPerConnection
Maximum number of operations which may be sent and still awaiting a response from the server per connection. This value may need tuning on high latency connections or based on average operation response size. Defaults to 8 operations per connection.
Declaration
public int MaximumInFlightOperationsPerConnection { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Note that this is not directly limiting the total number of in-flight operations, each bucket and each node gets a dedicated pool of connections that scale based on the minimum and maximum pool size. This limit is per connection.
MaximumOperationBuilderCapacity
Maximum size of a buffer used for building key/value operations to be sent to the server which will be retained for reuse. Buffers larger than this value will be disposed. If your application is consistently sending mutation operations larger than this value, increasing the value may improve performance at the cost of RAM utilization. Defaults to 1MB.
Declaration
public int MaximumOperationBuilderCapacity { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
MaximumRetainedOperationBuilders
Maximum number of buffers used for building key/value operations to be sent to the server which will be retained for reuse. If your application has a very high degree of parallelism (for example, a very large number of data nodes), increasing this number may improve performance at the cost of RAM utilization. Defaults to the 4 times the number of logical CPUs.
Declaration
public int MaximumRetainedOperationBuilders { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
StreamHttpResponseBodies
If enabled, HTTP responses such as query responses will be streamed after response headers
are received rather than waiting for the entire response body to be received. This defaults
to true
on modern .NET runtimes and false
on .NET 4.x.
Declaration
public bool StreamHttpResponseBodies { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
When enabled it becomes more important to call