# persist_with (for Explores)

<br />

> This page refers to the `persist_with` parameter that is part of an [Explore](https://docs.cloud.google.com/looker/docs/reference/param-explore-explore).
>
> `persist_with` can also be used as part of a model, described on the [`persist_with`](https://docs.cloud.google.com/looker/docs/reference/param-model-persist-with) parameter documentation page.

## Usage

```
explore: explore_name {
  persist_with: airports_datagroup
}
```

|---|---|
| Hierarchy [Model File](https://docs.cloud.google.com/looker/docs/reference/param-model) [`explore`](https://docs.cloud.google.com/looker/docs/reference/param-explore-explore) `persist_with` | Default Value None <br /> Accepts The name of a [datagroup](https://docs.cloud.google.com/looker/docs/reference/param-model-datagroup). |

## Definition

Use `persist_with` under the `explore` parameter to specify a [`datagroup`](https://docs.cloud.google.com/looker/docs/reference/param-model-datagroup) caching policy to use for that specific Explore.
> To specify a default datagroup for all Explores in a model, you can use the [`persist_with`](https://docs.cloud.google.com/looker/docs/reference/param-model-persist-with) parameter at the model level.

If you include a `persist_with` parameter under the `explore` parameter and also at the model level, the Explore will use the datagroup caching policy specified under the `explore` parameter.

See [caching](https://docs.cloud.google.com/looker/docs/caching-and-datagroups#specifying_caching_policies_with_datagroup_parameters) for an overview of datagroups.

## Example

Use the `orders_datagroup` caching policy for an Explore:

    explore: customer_facts {
      persist_with: orders_datagroup
      ...
    }