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, enabling parallel processing across multiple tasks or processes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePartitionId\u003c/code\u003e property within the \u003ccode\u003eCommandPartition\u003c/code\u003e class specifies the identifier for the subset of data to be processed by a \u003ccode\u003eSpannerCommand\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCommandPartition\u003c/code\u003e instances can be serialized into a base64 string using the \u003ccode\u003eToBase64String()\u003c/code\u003e method, and then recreated from a base64 string using the \u003ccode\u003eFromBase64String(string)\u003c/code\u003e method, which is useful for parallel operations across different systems.\u003c/p\u003e\n"],["\u003cp\u003eThe current latest beta version available is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, and there are several previous version releases listed on this page, including versions within the 4.x.x range and 3.x.x range.\u003c/p\u003e\n"]]],[],null,[]]