Snowflake Fundamentals
An overview of Snowflake, a cloud-based data warehouse platform. This article explains Snowflake's architecture, key features, and how it differs from traditional data warehouses. Learn about its separation of storage and compute, support…

Snowflake:
Snowflake is a cloud-based data warehouse service that offers a powerful and scalable platform for storing, querying, and analyzing data. It provides a unique architecture designed for high performance and cost-effectiveness, making it an ideal solution for data management. If you're new to this powerful cloud data platform, you're in for an exciting journey. In this blog, I'll walk you through the essential concepts and features of Snowflake. Let's dive in!
If you're curious about the underlying architecture of Snowflake and how it works, check out What is Snowflake.
Let's focus on the main components that make up Snowflake:
1. Worksheets: Your Playground for SQL
Worksheets in Snowflake are your primary interface for writing and executing SQL queries. They provide a user-friendly environment to interact with your data, run analyses, and explore your datasets.
Key Features of Worksheets:
- SQL Execution: Write and run SQL statements directly in the browser.
- Result Visualization: Explore and filter query results easily.
- Code Organization: Keep your SQL code organized and accessible.
Accessing Worksheets:
- Log in to your Snowflake account.
- Navigate to the Create --> "SQL Worksheets" or Projects --> "SQL Worksheets" section in the Snowsight interface.
- Create a new worksheet or open an existing one.
![]() | ![]() |
|---|
Example: Creating and Using a Worksheet
Let's create a simple worksheet to query the Tasty Bytes sample data:
-- Set the context (database and schema)
USE DATABASE tasty_bytes_sample_data;
USE SCHEMA raw_pos;
-- Query the menu table
SELECT COUNT(*) AS row_count
FROM menu;
-- Explore the first 10 rows of the menu table
SELECT TOP 10 *
FROM menu;
This example demonstrates how to set the context, count the rows in a table, and retrieve a sample of the data.
2. Virtual Warehouses: Powering Your Queries
Virtual warehouses are the compute clusters that execute your SQL queries in Snowflake. They provide the processing power needed to run your data operations efficiently.
Key Concepts:
- Scalability: Easily scale up or down based on your workload.
- Isolation: Separate compute resources for different workloads.
- Credit Consumption: Warehouses consume credits while running.
Warehouse Sizes:
Snowflake offers various warehouse sizes, from X-Small to 6X-Large. The size determines the amount of compute resources and credit consumption:
- X-Small: 1 credit per hour
- Small: 2 credits per hour
- Medium: 4 credits per hour
- Large: 8 credits per hour
- X-Large: 16 credits per hour
- 2X-Large to 6X-Large: 32 to 512 credits per hour
Managing Virtual Warehouses
Here are some examples of how to create, alter, and manage virtual warehouses:
-- Create a new warehouse
CREATE WAREHOUSE my_warehouse
WITH WAREHOUSE_SIZE = 'XSMALL'
AUTO_SUSPEND = 300
AUTO_RESUME = TRUE;
-- Use the warehouse
USE WAREHOUSE my_warehouse;
-- Resize the warehouse
ALTER WAREHOUSE my_warehouse SET WAREHOUSE_SIZE = 'MEDIUM';
-- Suspend the warehouse
ALTER WAREHOUSE my_warehouse SUSPEND;
-- Resume the warehouse
ALTER WAREHOUSE my_warehouse RESUME;
-- Show all warehouses
SHOW WAREHOUSES;
Auto-suspend and Auto-resume
To optimize costs, you can configure your warehouses to automatically suspend after a period of inactivity and resume when needed:
-- Set auto-suspend to 5 minutes (300 seconds) and enable auto-resume
ALTER WAREHOUSE my_warehouse
SET AUTO_SUSPEND = 300
AUTO_RESUME = TRUE;
Understanding worksheets and virtual warehouses is crucial for efficiently working with Snowflake. Worksheets provide the interface for interacting with your data, while virtual warehouses supply the necessary compute power to execute your queries.
On this page
Keep exploring
matched by tag + title overlap
Read next
What is Snowflake?
An overview of Snowflake, a cloud-based data warehouse platform. This article explains Snowflake's architecture, key features, and how it differs from traditional data warehouses. Learn about its separation of storage and compute, support…
#snowflake#data-engineering#aiBuilding an MCP Server for Snowflake Cortex Agents
Step-by-step guide to building a Model Connectivity Protocol (MCP) server for Cortex Agents with Snowflake, enabling AI applications like Cursor to connect to your Snowflake data and documentation.
#snowflake#data-engineeringPowerBI and Snowflake Integration
This blog will explore how to effectively integrate Power BI with Snowflake, focusing on best practices and technical details from the provided documents. It aims to help users understand the process and optimize their data analytics…
#snowflake#data-engineeringIceberg and Snowflake Integration
Learn how to integrate Apache Iceberg with Snowflake, covering key concepts like external tables, time travel, and file management, along with practical implementation examples and best practices.
#snowflake#data-engineering

