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
Looker documentation will be moving to cloud.google.com in mid-2022!
All the information you rely on will be migrated and all docs.looker.com URLs will be redirected to the appropriate page.
persist_with

This page refers to the persist_with parameter that is part of an Explore.

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

Usage

explore: explore_name {
  persist_with: airports_datagroup
}
Hierarchy
persist_with
Default Value
None

Accepts
The name of a datagroup.

Definition

Use persist_with under the explore parameter to specify a 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 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 for an overview of datagroups.

Example

Use the orders_datagroup caching policy for an Explore:

explore: customer_facts { persist_with: orders_datagroup … }

Top