Module 02 · Lesson 4 of 9Detailed study · about 20 min

Virtual warehouses, sizes and states

A virtual warehouse supplies compute for supported queries and operations.

Understand the idea

A virtual warehouse is a Snowflake compute resource. It supplies processing capacity, including CPU and memory, to execute work such as queries and supported loading operations.

Key ideas in simple English
ConceptWhat it means
NameIdentifies the compute object, such as LEVEL1_WH.
SizeCapacity per cluster, such as X-Small or Small.
StateStarted, resuming or suspended, with transitions during resource changes.
Type/generationAffects capabilities and rates; compare like configurations.

A concrete example

A warehouse can be started but idle. Its running interval can still consume credits.

Remember: Persistent table data remains when warehouse compute is suspended.

Explain it step by step · full theory

First, understand the meaning

A virtual warehouse is a Snowflake compute resource. It supplies processing capacity, including CPU and memory, to execute work such as queries and supported loading operations.

The name can be confusing: this warehouse does not permanently contain your business tables. It is the processing team working on data that is stored separately. One account can have several virtual warehouses.

Picture it in everyday life

Imagine two teams of accountants using the same approved records. Each team has its own people and calculators. The records are shared, but one team’s calculations do not use the other team’s workers. Separate virtual warehouses work in a similar way.

Why do we need this?

A query does more than find a file. It may read values, filter records, connect tables, sort rows and calculate totals. These actions use processing resources.

When many tasks need one warehouse at once, they may compete for its resources. A separate warehouse can serve another workload independently, but additional running compute also needs ownership and cost management.

Let us follow it step by step

Consider Northstar’s loading job and finance report.

  1. The loading job prepares incoming sales records using its assigned compute.
  2. The finance report requests a total over the available sales table.
  3. If both use one busy warehouse, their processing needs may compete.
  4. The team can choose separate loading and reporting warehouses to reduce direct compute competition.
  5. Both workloads still need correct permissions and suitable source data.

One warehouse or separate warehouses?

One warehouse or separate warehouses?
DesignUseful whenTrade-off
One shared warehouseWorkloads fit together and requirements are metShared capacity can become busy
Separate warehousesWorkloads overlap or need distinct ownershipMore resources and settings to manage
Larger warehouseA suitable workload needs more processing capacityMore capacity does not fix every cause of slowness

A warehouse cannot fix every problem

If the sales table is stale because loading failed, more reporting compute will only process the same stale data. If a user lacks access, a larger warehouse will not grant it. If the query is poorly written, extra capacity may not remove unnecessary work.

Choose a warehouse after understanding the work. Also remember that warehouse access and table access are separate requirements; a user needs the appropriate permissions for both the resources and data involved.

Before you move on

A virtual warehouse does the work; it is not the permanent home of the data. Separate warehouses can isolate compute demand, while access, freshness and data quality remain separate concerns.

Separate name, size, type and state

A warehouse name identifies a compute object, such as LEVEL1_WH. Its size describes a compute capacity choice, such as X-Small or Small. Its state describes whether resources are currently available, resuming or suspended. Warehouse type and generation can also affect capabilities and rates.

For standard warehouse learning, compare sizes within the same type and generation. A size name alone is insufficient for a universal price comparison. Check the current service consumption table for the account and configuration being used.

Read state as a lifecycle

A suspended warehouse has no running warehouse compute. A statement requiring that warehouse can trigger resume when auto-resume is enabled and the caller has appropriate access. Provisioning takes some time before the work can execute.

A started warehouse can be busy or idle. Idle running time still matters to consumption. When suspension is requested, in-flight work and resource shutdown affect the transition. Observe the displayed state rather than expecting every change to complete at the instant the command returns.

Inspect before changing

In Snowsight, inspect Compute → Warehouses using a permitted role. Record name, state, size, active clusters, running queries and queued work. A viewer may have different privileges from the role allowed to alter the warehouse.

The small setup example in the next lesson creates its own suspended learning warehouse. No existing shared warehouse needs to be resized to understand the state model.

Words used in this lesson
Virtual warehouse
A compute resource that executes Snowflake work.
Execution
Performing operations needed to produce a result.
Workload
Related tasks assigned to processing resources.
Queue
Requests waiting before they can run.

See how it works

Choose a step to explore the idea at your own pace.

Open the interactive explanation
Interactive explainer1 / 3

Virtual warehouses, sizes and states

Loading
One warehouse
Reporting

Shared compute

Loading and reporting request work from one warehouse.

Automatic playback is off for reduced motion. Select any step or use Previous and Next. Illustrations explain behavior; they are not live measurements.

Read the complete diagram explanation
  1. Shared compute

    Loading and reporting request work from one warehouse.

  2. Separate compute

    Each workload can receive its own execution resources.

  3. Check the result

    Ask whether reports are faster, current enough and worth the resource usage.

Try the SQL or command

Read → predict → run in your learning environment → compare. You can also learn by reading without an account.

New to SQL? Where to run it and how to read it

A query is a question written in SQL. Snowflake runs it and returns a result table. This website shows examples; it does not connect to your account.

  1. No account yet? Read and predict the output first. Follow the account and Snowsight lesson when you are ready.
  2. For SQL practice, use a learning account in Snowsight and select an authorized role and warehouse. A role determines permissions; a warehouse supplies processing power. Follow the example’s database/schema setup when it refers to stored objects.
  3. Read the entire example, including comments beginning with --. Run the selected statement or labeled block in the stated order. Examples labeled Python, shell or HTTP belong in that client, not in a SQL editor.
  4. Compare values and row counts with the explained result. If an example deliberately causes an error, follow its rollback and cleanup steps before continuing.
SELECT / FROM
Choose the values to return / identify their input.
VALUES / COLUMN1
VALUES supplies tiny example rows. COLUMN1 means their first column, COLUMN2 their second.
AS / WITH
AS gives a result a readable name. WITH names a temporary query step within one statement.
NULL / ::
NULL means missing or unknown. The :: notation converts a value to a named data type.
Session
One connection and its settings. Keep related transaction steps in the same session.
Database.schema.table
A full address for stored data. It is separate from the warehouse that processes queries.
Help with common practice errors
  • No active warehouse: select a warehouse your role can use. Do not assume you need to create a new one.
  • Object missing or not authorized: check the full name, required setup and active role. Ask the account owner for access if needed.
  • Object already exists: setup may already have run. Read the current state or choose a fresh lab name consistently; do not add OR REPLACE blindly.
  • Different result: check whether an earlier INSERT or UPDATE changed the data. VALUES examples provide their own fresh input for each statement.

Inspect warehouses

SQL · example
SHOW WAREHOUSES;

What to expect and why

Inspect name, size and state for visible warehouses. This command does not resize or resume them. An empty result can mean your role lacks visibility.

Check your understanding

Choose an answer, then check your reasoning. This is practice, not a scored test.

A report is stale because loading failed. Will a separate reporting warehouse fix freshness?

Try it yourself

Choose one shared or two separate warehouses for predictable nightly loading and daytime reporting. Explain when you would reconsider.

Compare your reasoning

One may be reasonable if work does not overlap and requirements are met. Consider separation if schedules overlap, queries queue or ownership requires it. Review cost and freshness either way.

Official sources and curriculum

Module 02 · See module scope