krishp091205/gemini-config/bigquery-sql
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Provides BigQuery SQL query optimization techniques, execution best practices,
Install
npx vskill@latest install krishp091205/gemini-config/bigquery-sqlSKILL.md
BigQuery SQL Optimization
Performance and efficiency guidelines for BigQuery SQL queries. Includes rules for column pruning, predicate pushdown, join optimization, and materialization strategies.
SQL Optimization Rules
[!TIP] Always include a "Summary of Optimizations" section listing onlythe optimizations applied.
Always Apply (Automatic)
- Column Pruning: Remove unnecessary columns from all query stages.
- Common Subexpression Reuse: Factor out identical expressions to avoid
redundant computation.
- Predicate Pushdown: Apply
WHEREfilters as early as possible. - Early Aggregation: Perform
GROUP BYbefore joins when possible. - Intermediate Materialization: Choose
VIEWvsTABLEfor intermediate
nodes based on efficiency.
Intermediate Node Strategy
- `VIEW`: Small datasets or simple transformations.
- `TABLE`: Large datasets, expensive computations, or nodes reused
multiple times.
Always Rewrite (Mandatory)
- `WHERE <col> IN (SELECT ...)`: Replace With `WHERE EXISTS (SELECT 1 FROM
...)`
- `WHERE (SELECT COUNT(*) ...) > 0`: Replace With `WHERE EXISTS (SELECT 1
FROM ...)`
Propose with Confirmation (Conditional)
- `UNION` → `UNION ALL`: Faster (skips deduplication), but permits
duplicate rows.
- `COUNT(DISTINCT)` → `APPROX_COUNT_DISTINCT`: Faster and lower memory,
but approximate.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bigquery-sql/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/krishp091205/gemini-config/bigquery-sql)