Configuring the High-Throughput API
You can configure the connector to use the High-Throughput API to handle large result sets more efficiently. For more information about the High-Throughput API, see High-Throughput API.
To configure the High-Throughput API:
- Make sure that your Google BigQuery project has the Storage API enabled. For more information about the Storage API, see "BigQuery Storage API Overview" in the Google BigQuery documentation: https://cloud.google.com/bigquery/docs/reference/storage/.
- In the
odbc.ini
file, if you are using Legacy SQL (theSQLDialect
property is set to0
), then set theAllowLargeResults
property to1
. - To specify the dataset that stores temporary tables for large result sets and result sets returned by the High-Throughput API, do one of the following:
- To use the default dataset with the ID _bqodbc_temp_tables, set the
UseDefaultLargeResultsDataset
property to1
. - Or, to specify a different dataset, set the
UseDefaultLargeResultsDataset
property to0
and set theLargeResultsDataSetId
property to the ID of the BigQuery dataset that you want to use.
Note:
If the dataset does not exist and the data store specifies the US region, the connector creates the dataset.
- To use the default dataset with the ID _bqodbc_temp_tables, set the
- Set the
EnableHTAPI
property to1
. - Set the
HTAPI_MinResultsSize
property to the minimum number of table rows required to activate the High-Throughput API. - Set the
HTAPI_MinActivationRatio
property to the minimum ratio of total rows to rows in the first page required to activate reading through the High-Throughput API.
Note:
Note:
If this value is set to 0, then the connector uses the High-Throughput API for all query results that meet the minimum results size specified by the HTAPI_MinResultsSize
property.
The connector uses the BigQuery High-Throughput API instead of the REST API for requests where both:
- the number of table rows in your query results exceeds the
HTAPI_MinResultsSize
value; - and the number of pages in the results exceeds the
HTAPI_MinActivationRatio
value.
- High-Throughput API
- Configuring the Driver on page 1
- Advanced Driver Configuration Options