[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-26。"],[],[],null,["# Use Data Boost in your applications\n\nThis page lists the Spanner APIs that support Spanner Data Boost and explains how to view sample code that uses Data Boost. With Data Boost, you can run large analytic queries with near-zero impact to existing workloads on the provisioned Spanner instance.\n\n\u003cbr /\u003e\n\nBefore you begin\n----------------\n\nEnsure that the principal (for example, the service account) that runs the\napplication has the\n`spanner.databases.useDataBoost` Identity and Access Management (IAM)\npermission. For more information, see\n[Access control with IAM](../iam).\n\nAPIs\n----\n\nFor partitioned reads with Data Boost, the following\nSpanner APIs have an option to enable Data Boost:\n\n- `ExecuteSql` [RPC](/spanner/docs/reference/rpc/google.spanner.v1#google.spanner.v1.Spanner.ExecuteSql) \\| [REST](/spanner/docs/reference/rest/v1/projects.instances.databases.sessions/executeSql)\n- `ExecuteStreamingSql` [RPC](/spanner/docs/reference/rpc/google.spanner.v1#google.spanner.v1.Spanner.ExecuteStreamingSql) \\| [REST](/spanner/docs/reference/rest/v1/projects.instances.databases.sessions/executeStreamingSql)\n- `read` [RPC](/spanner/docs/reference/rpc/google.spanner.v1#google.spanner.v1.Spanner.Read) \\| [REST](/spanner/docs/reference/rest/v1/projects.instances.databases.sessions/read)\n- `streamingRead` [RPC](/spanner/docs/reference/rpc/google.spanner.v1#google.spanner.v1.Spanner.StreamingRead) \\| [REST](/spanner/docs/reference/rest/v1/projects.instances.databases.sessions/streamingRead)\n\nWe recommend that you use `ExecuteStreamingSql` and `streamingRead` in your\napplications, because `ExecuteSql` and `read` are limited to 10 MB of\ndata in their responses.\n\nSample code\n-----------\n\nFor examples of using Data Boost in your application code, see\n[Read data in parallel](../reads#read_data_in_parallel).\n\nApache Spark SQL Connect for Google Cloud Spanner\n-------------------------------------------------\n\nThe Apache Spark SQL Connector for Google Cloud Spanner supports\nreading Google Cloud Spanner tables into Spark's DataFrames using\nthe Spanner Java library. For more information about the Apacha\nSpark SQL Connector, see [Apache Spark SQL connector for Google Cloud Spanner](https://github.com/GoogleCloudDataproc/spark-spanner-connector).\n\nWhat's next\n-----------\n\n- Learn about Data Boost in [Data Boost overview](/spanner/docs/databoost/databoost-overview).\n- [Monitor Data Boost usage](/spanner/docs/databoost/databoost-monitor)\n- [Monitor and manage Data Boost quota usage](/spanner/docs/databoost/databoost-quotas)"]]