Class ConsumedCapacity
Namespace: Oracle.NoSQL.SDK
Assembly: Oracle.NoSQL.SDK.dll
Syntax
public class ConsumedCapacity : Object
Remarks
ConsumedCapacity is part of results of data operations such as GetResult<TRow>, PutResult<TRow>, DeleteResult<TRow>, WriteManyResult<TRow>, PreparedStatement and QueryResult<TRow>. It contains read and write throughput consumed by the operation in KBytes as well as in read and write units. Throughput in read and write units is defined as follows.
A read unit represents one eventually consistent read per second for data up to 1 KB in size. A read that is absolutely consistent is double that, consuming 2 read units for a read of up to 1 KB in size. This means that if an application is to use Absolute, it may need to specify additional read units when creating a table. A write unit represents 1 write per second of data up to 1 KB in size. Note the following:
- For read operations, such as GetAsync(String, MapValue, GetOptions, CancellationToken), PrepareAsync(String, PrepareOptions, CancellationToken) and QueryAsync, the number of ReadUnits consumed may be larger than the number of read KBytes (ReadKB) if if the operation used absolute consistency.
- For update operations such as PutAsync(String, MapValue, PutOptions, CancellationToken) and others, the number of read units consumed may also be larger than the number of read KBytes.
Properties
Name | Description |
---|---|
RateLimitDelay | Gets the value indicating how long the operation has been delayed due to rate limiting. |
ReadKB | Gets the read throughput in KBytes. |
ReadRateLimitDelay | Gets the value indicating how long the operation has been delayed by the rate limiter due to the table read limit. |
ReadUnits | Gets the read throughput in read units. |
WriteKB | Gets the write throughput in KBytes. |
WriteRateLimitDelay | Gets the value indicating how long the operation has been delayed by the rate limiter due to the table write limit. |
WriteUnits | Gets the write throughput in write units. |
Methods
Name | Description |
---|---|
ToString() | Returns a string representing this consumed capacity. |