For example, this may be set to the number of workers available. The default for this option is currently 10,000. The maximum value is currently 200,000. This is only a hint. The actual number of partitions returned may be smaller or larger than this request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis webpage lists the available versions of the \u003ccode\u003ePartitionsMaximumOption\u003c/code\u003e for the Google Cloud Spanner C++ client library, ranging from the latest release candidate (2.37.0-rc) down to version 2.11.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePartitionsMaximumOption\u003c/code\u003e is used to set the maximum number of partitions returned by \u003ccode\u003eClient::PartitionRead()\u003c/code\u003e or \u003ccode\u003ePartitionQuery()\u003c/code\u003e, offering control over the partitioning process.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePartitionsMaximumOption\u003c/code\u003e is an option for \u003ccode\u003egoogle::cloud::Options\u003c/code\u003e that provides a hint for the number of partitions, with a default of 10,000 and a maximum of 200,000, however, the actual number can vary.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePartitionsMaximumOption\u003c/code\u003e is an alias for \u003ccode\u003estd::int64_t\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Struct PartitionsMaximumOption (2.42.0-rc)\n\nVersion latestkeyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/spanner/latest/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.41.0](/cpp/docs/reference/spanner/2.41.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.40.0](/cpp/docs/reference/spanner/2.40.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.39.0](/cpp/docs/reference/spanner/2.39.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.38.0](/cpp/docs/reference/spanner/2.38.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.37.0](/cpp/docs/reference/spanner/2.37.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.36.0](/cpp/docs/reference/spanner/2.36.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.35.0](/cpp/docs/reference/spanner/2.35.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.34.0](/cpp/docs/reference/spanner/2.34.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.33.0](/cpp/docs/reference/spanner/2.33.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.32.0](/cpp/docs/reference/spanner/2.32.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.31.0](/cpp/docs/reference/spanner/2.31.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.30.0](/cpp/docs/reference/spanner/2.30.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.29.0](/cpp/docs/reference/spanner/2.29.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.28.0](/cpp/docs/reference/spanner/2.28.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.27.0](/cpp/docs/reference/spanner/2.27.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.26.0](/cpp/docs/reference/spanner/2.26.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.25.1](/cpp/docs/reference/spanner/2.25.1/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.24.0](/cpp/docs/reference/spanner/2.24.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.23.0](/cpp/docs/reference/spanner/2.23.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.22.1](/cpp/docs/reference/spanner/2.22.1/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.21.0](/cpp/docs/reference/spanner/2.21.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.20.0](/cpp/docs/reference/spanner/2.20.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.19.0](/cpp/docs/reference/spanner/2.19.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.18.0](/cpp/docs/reference/spanner/2.18.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.17.0](/cpp/docs/reference/spanner/2.17.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.16.0](/cpp/docs/reference/spanner/2.16.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.15.1](/cpp/docs/reference/spanner/2.15.1/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.14.0](/cpp/docs/reference/spanner/2.14.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.13.0](/cpp/docs/reference/spanner/2.13.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.12.0](/cpp/docs/reference/spanner/2.12.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption)\n- [2.11.0](/cpp/docs/reference/spanner/2.11.0/structgoogle_1_1cloud_1_1spanner_1_1PartitionsMaximumOption) \nOption for [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to set the desired maximum number of partitions to return from [`Client::PartitionRead()`](/cpp/docs/reference/spanner/latest/classgoogle_1_1cloud_1_1spanner_1_1Client#classgoogle_1_1cloud_1_1spanner_1_1Client_1a039dd1aa3b34ad3cbeda17d810809b17) or `PartitionQuery()`. \nFor example, this may be set to the number of workers available. The default for this option is currently 10,000. The maximum value is currently 200,000. This is only a hint. The actual number of partitions returned may be smaller or larger than this request.\n\nType Aliases\n------------\n\n### Type\n\n**Alias Of** : `std::int64_t`"]]