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 in the Google Cloud Spanner C++ library, used for managing parallel SQL read operations.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eQueryPartition\u003c/code\u003e is 2.37.0-rc, and the page provides documentation for version 2.12.0 and onwards, up until 2.37.0-rc.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eQueryPartition\u003c/code\u003e objects, representing a single slice of a parallel SQL read, are created by \u003ccode\u003eClient::PartitionQuery\u003c/code\u003e and can be used to read data in parallel using \u003ccode\u003eClient::ExecuteQuery\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eQueryPartition\u003c/code\u003e instances support serialization and transmission to separate processes for distributed parallel processing, with the option for execution on Spanner-independent compute resources if \u003ccode\u003edata_boost\u003c/code\u003e is configured.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers constructors for copying and moving, as well as operators for assignment and a function \u003ccode\u003esql_statement()\u003c/code\u003e to retrieve the associated \u003ccode\u003eSqlStatement\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]