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 using the independent compute resources of Cloud Spanner Data Boost.
[[["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\u003eThe webpage provides documentation for the \u003ccode\u003eQueryPartition\u003c/code\u003e class in the Google Cloud Spanner C++ library, covering versions from 2.11.0 to 2.37.0-rc, with the current documentation being for version 2.27.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eQueryPartition\u003c/code\u003e objects represent a slice of a parallel SQL read and are created via \u003ccode\u003eClient::PartitionQuery\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eInstances of \u003ccode\u003eQueryPartition\u003c/code\u003e can be serialized and used in separate processes for parallel data reads with \u003ccode\u003eClient::ExecuteQuery\u003c/code\u003e, optionally leveraging Cloud Spanner Data Boost.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes details on the \u003ccode\u003eQueryPartition\u003c/code\u003e class constructors, copy and move operators, and the \u003ccode\u003esql_statement()\u003c/code\u003e function to access the associated \u003ccode\u003eSqlStatement\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest available version of the documentation for this class is 2.37.0-rc, which can be found at the top of the list of all previous versions.\u003c/p\u003e\n"]]],[],null,[]]