# Compute Pools

A compute pool is a set of dedicated resources to run batch queries. Compute pools are Apache Spark clusters you use to perform real-time analytics on data you read from Iceberg tables. They are similar to Databricks’ [all-purpose compute](https://docs.databricks.com/aws/en/compute/use-compute).

You create a compute pool much like you’d create any new DeltaStream object. Define it at the organization level and follow the same access control rules. Specific to compute pools, however, you also must select a pool size – S, M, or L. DeltaStream auto-configures and instantiates the pool based on your selection. You never manage or interact with Spark directly.

From there, you can execute queries, joins, and so on just as you would with any other data store in DeltaStream. (Joins currently apply only from Iceberg to Iceberg.) Depending on your use case, you can perform your analysis without using an external query engine such as AWS Athena or Trino. Also, as with DeltaStream data stores, you can create multiple compute pools per organization.

{% hint style="info" %}
**Note** You do not need a compute pool if you are only writing to Iceberg – if, for example, you’re streaming filtered Kafka data into Iceberg tables. Compute pools are necessary only if you wish to read from/query Iceberg data.
{% endhint %}

### Using SQL DDL with Compute Pools in DeltaStream

[Create Compute\_Pool](/reference/sql-syntax/ddl/create-compute_pool.md)

[Update Compute\_Pool](/reference/sql-syntax/ddl/update-compute_pool.md)

[Create Store](/reference/sql-syntax/ddl/create-store.md)

[List Compute\_Pool](/reference/sql-syntax/command/list-compute_pools.md)

[Drop Compute\_Pool](/reference/sql-syntax/ddl/drop-compute_pool.md)

[Start Compute\_Pool](/reference/sql-syntax/command/start-compute_pool.md)

[Stop Compute\_Pool](/reference/sql-syntax/command/stop-compute_pool.md)

### <br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.deltastream.io/overview/core-concepts/compute-pools.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
