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\u003eThis document provides reference information for the \u003ccode\u003eCommandPartition\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Spanner.Data\u003c/code\u003e namespace, primarily used for partitioning data in Spanner for parallel operations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCommandPartition\u003c/code\u003e class, part of Google Cloud Spanner Data, represents a division of data that a \u003ccode\u003eSpannerCommand\u003c/code\u003e can execute upon, enabling parallel processing across different tasks.\u003c/p\u003e\n"],["\u003cp\u003eThe latest available version for reference is 5.0.0-beta05, and the page lists previous versions, including 4.6.0 down to 3.5.0, which includes direct links to each version.\u003c/p\u003e\n"],["\u003cp\u003eKey functionalities of \u003ccode\u003eCommandPartition\u003c/code\u003e include obtaining a partition ID (\u003ccode\u003ePartitionId\u003c/code\u003e) and serializing/deserializing partitions to and from Base64 strings using the \u003ccode\u003eToBase64String()\u003c/code\u003e and \u003ccode\u003eFromBase64String(string)\u003c/code\u003e methods, respectively.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCommandPartition\u003c/code\u003e inherits from \u003ccode\u003eobject\u003c/code\u003e and implements the \u003ccode\u003eIEquatable\u003c/code\u003e interface.\u003c/p\u003e\n"]]],[],null,[]]