bigquery-sql
Provides BigQuery SQL query optimization techniques, execution best practices, and performance tuning rules for high-efficiency querying. Use when optimizing BigQuery SQL queries, reducing query costs, or designing performant SQL transformations.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- bigquery-sql
- license
- Apache-2.0
- metadata
- { "version": "v2", "publisher": "google" }
- description
- Provides BigQuery SQL query optimization techniques, execution best practices, and performance tuning rules for high-efficiency querying. Use when optimizing BigQuery SQL queries, reducing query costs, or designing performant SQL transformations.
02 资源文件 1
- 其他OWNERS69 B
03 SKILL.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 only the 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 WithWHERE EXISTS (SELECT 1 FROM ...)WHERE (SELECT COUNT(*) ...) > 0: Replace WithWHERE 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.
04 同仓库更多 Skills
rag-architect-agent
Agente Arquiteto de RAG, Embeddings & Busca Vetorial. Especialista em design e implementação de pipelines de Retrieval-Augmented Generation de alta fidelidade: chunking semântico, modelagem pgvector no PostgreSQL (Neon/Supabase), busca híbrida (cosseno + BM25), reranking, validação via TypeSafe AI e filosofia Ponytail (anti-overengineering).
rag-architecture-patterns
Padrões arquiteturais e implementação de pipelines RAG (Retrieval-Augmented Generation) de alta fidelidade para qualquer projeto ou sistema. Cobre chunking semântico, embeddings, busca híbrida (pgvector + BM25), reranking, validação via TypeSafe AI e filosofia Ponytail (anti-overengineering).
skill-repair
Use this to fix and re-install agent skills that have failed installation. This skill provides the necessary context and permissions to surgically update the `manifest.json` after a fix has been applied.
security-scan
Scan your Claude Code configuration (.claude/ directory) for security vulnerabilities, misconfigurations, and injection risks using AgentShield. Checks CLAUDE.md, settings.json, MCP servers, hooks, and agent definitions.
security-review
Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provides comprehensive security checklist and patterns.
security-bounty-hunter
Hunt for exploitable, bounty-worthy security issues in repositories. Focuses on remotely reachable vulnerabilities that qualify for real reports instead of noisy local-only findings.