A string specifying the length of time in seconds, minutes, or hours as follows: "N (seconds | minutes | hours)"
Definition
When Looker determines the values that it will suggest to users when they filter on adimensionorfilterfield, it runs a query to find the unique values of that field. By default this list of suggestions is cached for 6 hours. However, you can change the amount of time that suggestions are cached usingsuggest_persist_for.
Looker typically generates suggestions for a dimension by executing aSELECT DISTINCTquery on that dimension. For some large tables this query can be too slow, or create too large of a database load. Caching suggestion values for a longer period reduces the number ofSELECT DISTINCTqueries. Alternatively, if your database is updated frequently, a shorter cache time results in fresher suggestion lists.
Examples
Set the suggestion cache for thenamedimension to 30 minutes:
dimension: name {
sql: ${TABLE}.name ;;
suggest_persist_for: "30 minutes"
}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-23 UTC."],[],[]]