# persist_with (for models)

<br />

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

## Usage

```
persist_with: airports_datagroup
```

|---|---|
| Hierarchy [Model File](https://docs.cloud.google.com/looker/docs/reference/param-model) `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` at the model level to specify the default [`datagroup`](https://docs.cloud.google.com/looker/docs/reference/param-model-datagroup) caching policy to use for all Explores in the model. See the [Caching queries and rebuilding PDTs with datagroups](https://docs.cloud.google.com/looker/docs/caching-and-datagroups#specifying_caching_policies_with_datagroup_parameters) documentation page for an overview of datagroups.
> To specify a datagroup for just one or more Explores, or to override the default datagroup for one or more Explores, you can use the [`persist_with` parameter for `explore`](https://docs.cloud.google.com/looker/docs/reference/param-explore-persist-with) to specify a different datagroup for those Explores.

## Example

Use the `orders_datagroup` caching policy for all Explores in the model:

    persist_with: orders_datagroup