Compute model adjustments
The compute model used by a query can be defined based on various configurations:
default is the On-demand model,
the project/folder or organization parent for the job may be assigned to a reservation, and then particular types of jobs are using the selected reservation,
the query may have a reservation override defined.
Using these levels BigQuery offers a lot of flexibility to optimize the compute models across your queries.
Masthead introduces a new level of compute model configuration - technology. Different technologies often follow clear patterns of computational resources better suited for their workload. Masthead provides recommendations when a specific technology offers significant savings and can be optimized with minimal effort. For the most common technologies, we’ve compiled a list of actions to help you update the compute model across all jobs at the technology level.
Airflow
DBT
Use DBT pre-hooks to add the SQL statement updating the reservation to be used.
Looker
Editing Billing Project ID in the Looker connection can run the jobs in a dedicated project which is either assigned to a reservation or uses on-demand capacity.
The service account will require BigQuery Job User and Service Usage Consumer roles in this project.
Fully qualified references for datasets and tables are required (starting with project_id
where the data resides). Otherwise BigQuery will be looking for the table in the billing project.
Last updated