The QueryPartition class is a regular type that represents a single slice of a parallel SQL read.
Instances of QueryPartition are created by Client::PartitionQuery. Once created, QueryPartition objects can be serialized, transmitted to separate processes, and used to read data in parallel using Client::ExecuteQuery. If data_boost is set, those requests will be executed via Spanner- independent compute resources.
[[["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-22 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eQueryPartition\u003c/code\u003e class within the Google Cloud Spanner C++ library, offering access to documentation for version 2.11.0 and several previous versions.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eQueryPartition\u003c/code\u003e represents a single slice of a parallel SQL read, created using \u003ccode\u003eClient::PartitionQuery\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eQueryPartition\u003c/code\u003e objects can be serialized and transmitted to separate processes, and used for parallel data reading via \u003ccode\u003eClient::ExecuteQuery\u003c/code\u003e, and if the data boost is set, will be executed using spanner independent compute resources.\u003c/p\u003e\n"],["\u003cp\u003eThe current version discussed is 2.11.0, and the latest release is version 2.37.0-rc, with a list of previous versions ranging from 2.36.0 to 2.11.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes constructors for copying and moving \u003ccode\u003eQueryPartition\u003c/code\u003e objects, and operators for assignment, along with a \u003ccode\u003esql_statement()\u003c/code\u003e function to access the associated \u003ccode\u003eSqlStatement\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]