public sealed class CommandPartition : IEquatable<CommandPartition>
Reference documentation and code samples for the Google.Cloud.Spanner.Data class CommandPartition.
Represents a partition of data upon which a SpannerCommand will execute.
Partitions are useful for parallelizing large operations across several tasks or processes.
After partitioning a query, the partitions can be serialized using this method, then deserialized
with FromBase64String(String) on multiple machines, allowing parallel processing.
[[["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 \u003ccode\u003eCommandPartition\u003c/code\u003e class represents a segment of data for a \u003ccode\u003eSpannerCommand\u003c/code\u003e to execute, facilitating parallel processing of large operations across multiple tasks or processes.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 5.0.0-beta05, with a range of previous versions, including stable releases and beta versions, accessible in the documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePartitionId\u003c/code\u003e property provides the unique identifier for the data set that will be included when the \u003ccode\u003eSpannerCommand\u003c/code\u003e is executed.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCommandPartition\u003c/code\u003e objects can be serialized into a base64 string using \u003ccode\u003eToBase64String()\u003c/code\u003e and reconstructed using \u003ccode\u003eFromBase64String(String)\u003c/code\u003e, enabling the distribution of partitioned queries across different machines.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCommandPartition\u003c/code\u003e class implements \u003ccode\u003eIEquatable\u003c/code\u003e, allowing instances to be checked for equality and also overrides \u003ccode\u003eGetHashCode()\u003c/code\u003e for compatibility with hash-based collections.\u003c/p\u003e\n"]]],[],null,[]]