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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the Google Cloud Spanner V1 API documentation is 5.0.0-beta05, with version 4.1.0 being the current version detailed on this page.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003ePartitionOptions\u003c/code\u003e class within the Google Cloud Spanner v1 API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePartitionOptions\u003c/code\u003e is used in \u003ccode\u003ePartitionQueryRequest\u003c/code\u003e and \u003ccode\u003ePartitionReadRequest\u003c/code\u003e to specify options for data partitioning.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePartitionOptions\u003c/code\u003e class allows setting hints for the desired maximum number of partitions and the desired data size for each partition, but they are currently ignored.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists all versions of the Google Cloud Spanner V1 API that are available and where they can be found.\u003c/p\u003e\n"]]],[],null,[]]