public sealed class PartitionOptions : IMessage<PartitionOptions>, IEquatable<PartitionOptions>, IDeepCloneable<PartitionOptions>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Spanner v1 API class PartitionOptions.
Options for a PartitionQueryRequest and
PartitionReadRequest.
Note: This hint is currently ignored by PartitionQuery and
PartitionRead requests.
The desired maximum number of partitions to return. For example, this may
be set to the number of workers available. The default for this option
is currently 10,000. The maximum value is currently 200,000. This is only
a hint. The actual number of partitions returned may be smaller or larger
than this maximum count request.
Note: This hint is currently ignored by PartitionQuery and
PartitionRead requests.
The desired data size for each partition generated. The default for this
option is currently 1 GiB. This is only a hint. The actual size of each
partition may be smaller or larger than this size request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["The document provides reference documentation for the `PartitionOptions` class within the Google Cloud Spanner v1 API for .NET, detailing its purpose as options for partitioning query and read requests."],["The `PartitionOptions` class implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits from the base `object` class."],["The latest version documented is 5.0.0-beta05, and the document covers versions as far back as 3.5.0 for `PartitionOptions`, detailing different versions of the PartitionOptions class."],["The class `PartitionOptions` has two main properties, `MaxPartitions` and `PartitionSizeBytes`, which are hints for the desired number of partitions and size of partitions respectively, and they are of type long."],["The `PartitionOptions` class provides two constructors, one default constructor `PartitionOptions()`, and another copy constructor `PartitionOptions(PartitionOptions other)`."]]],[]]