home User Guide Getting Started Help Center Documentation Community Training Certification
menu
close
settings
Looker keyboard_arrow_down
language keyboard_arrow_down
English
Français
Deutsch
日本語
search
print
persist_with

This page refers to the persist_with parameter that is part of a model.

persist_with can also be used as part of an Explore, described on the persist_with parameter documentation page.

Usage

persist_with: airports_datagroup

Hierarchy

persist_with

Default Value

None

Accepts

The name of a datagroup.

Definition

Use persist_with at the model level to specify the default datagroup caching policy to use for all Explores in the model. See the Caching queries and rebuilding PDTs with datagroups documentation page for an overview of datagroups.

If you want to specify a datagroup for just one or more Explores, or if you want to override the default datagroup for one or more Explores, you can use the persist_with parameter for explore 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

Top