本文へ移動
cccskills
無料GitHub で公開

snowflake-best-practices

Snowflake best practices for cloud data warehouse design, query optimization, and cost management

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Snowflake Best Practices

Warehouse Design

Sizing (CRITICAL)

  • Start small (XS or S), scale up as needed
  • Enable auto-scaling for concurrency
  • Enable auto-suspend (1 minute idle)
  • Separate warehouses for different workloads

Multi-Cluster Warehouses

  • Use for high concurrency (many users)
  • Set min/max clusters based on load
  • Scaling policy: Standard (default) or Economy

Query Optimization

Clustering Keys (CRITICAL)

  • Define clustering keys for frequently filtered columns
  • Improves micro-partition pruning
  • Monitor clustering depth
  • Automatic clustering: ALTER TABLE ... CLUSTER BY (...)

Result Caching

  • 24-hour cache for identical queries
  • Use SHOW PARAMETERS to check cache status
  • Bypass cache with query hint: /*+ NO_RESULT_CACHE */

Materialized Views

  • For repeated aggregations
  • Automatically refreshed on base table changes
  • Cost: storage + refresh compute

Data Loading

COPY INTO (CRITICAL)

  • Batch load from stages (S3/GCS/Azure)
  • File size: 100-250MB compressed (optimal)
  • Use pattern matching for multiple files

Snowpipe

  • Continuous ingestion
  • Event-driven (S3 notifications)
  • Serverless compute

Cost Optimization

Resource Monitors

  • Set credit quotas per warehouse
  • Alerts and suspend actions
  • Track consumption with WAREHOUSE_METERING_HISTORY

Storage

  • Use zero-copy cloning for dev/test
  • Time travel retention: 1 day (standard), 90 days (enterprise)
  • Fail-safe: 7 days (not configurable)

References

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Pre-action boundary checking — validates agent tool calls against declared capabilities and task contracts

日本語の概要は準備中です。原文の説明を表示しています。

baekenough/second-brain152026年10月8日 更新

Auto-detect project context and optimize harness — deactivate unused agents/skills, suggest missing experts, generate project profile

日本語の概要は準備中です。原文の説明を表示しています。

baekenough/second-brain152026年10月8日 更新

Adversarial code review using attacker mindset — trust boundary, attack surface, business logic, and defense evaluation

日本語の概要は準備中です。原文の説明を表示しています。

baekenough/second-brain152026年10月8日 更新

Apache Airflow best practices for DAG authoring, testing, and production deployment

日本語の概要は準備中です。原文の説明を表示しています。

baekenough/second-brain152026年10月8日 更新

Alembic migration patterns for naming conventions, safety checks, expand-contract, env.py configuration, and CI integration

日本語の概要は準備中です。原文の説明を表示しています。

baekenough/second-brain152026年10月8日 更新

Pre-routing ambiguity analysis — scores request clarity and asks clarifying questions when needed (inspired by ouroboros)

日本語の概要は準備中です。原文の説明を表示しています。

baekenough/second-brain152026年10月8日 更新

baekenough のスキルをすべて見る

このスキルの問題を報告する