bq-query-optimization

Official

Speed up BigQuery queries and reduce costs.

AuthorFunnelEnvy
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill helps analysts optimize and debug BigQuery SQL queries for performance and cost.

Core Features & Use Cases

  • Parameterized queries: write safe, reusable SQL with bound parameters to improve caching and readability.
  • Advanced functions: leverage UDFs, scripting, and window functions (QUALIFY, ROW_NUMBER, RANK, LEAD/LAG) to simplify complex analyses.
  • BigQuery-specific patterns: apply best practices for EXCEPT/REPLACE usage, JSON/ARRAY/STRUCT handling, NOT IN with NULLs, and efficient DML.
  • Use Case: optimize a nightly analytics query that scans a large dataset, replacing SELECT * with targeted columns and adding partition filters to reduce cost and improve performance.

Quick Start

Start with a simple query, enable parameterization, review the execution plan, and iteratively apply the optimization techniques described above. Then validate results against a non-optimized baseline.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: bq-query-optimization
Download link: https://github.com/FunnelEnvy/agents_webinar_demos/archive/main.zip#bq-query-optimization

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.