Skip to content
cccskills
FreePublished on GitHub

snowflake-best-practices

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

The English summary is being prepared. Showing the original description.

Works withAWSSnowflake
See how to install

Files included (1)

  • SKILL.md1.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

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

The English summary is being prepared. Showing the original description.

baekenough/second-brain15Updated Oct 8, 2026

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

The English summary is being prepared. Showing the original description.

baekenough/second-brain15Updated Oct 8, 2026

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

The English summary is being prepared. Showing the original description.

baekenough/second-brain15Updated Oct 8, 2026

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

The English summary is being prepared. Showing the original description.

baekenough/second-brain15Updated Oct 8, 2026

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

The English summary is being prepared. Showing the original description.

baekenough/second-brain15Updated Oct 8, 2026

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

The English summary is being prepared. Showing the original description.

baekenough/second-brain15Updated Oct 8, 2026

See all skills by baekenough

Report a problem with this skill