Hi. I want users to click into data on my dashboards.
But, I find that they often give up because the load times so long. Can I set it so that it runs every drill-down query when it refreshes the dashboard?
Thanks,
Sebastian
Hi. I want users to click into data on my dashboards.
But, I find that they often give up because the load times so long. Can I set it so that it runs every drill-down query when it refreshes the dashboard?
Thanks,
Sebastian
Instead of caching every drill down, a PDT might be the alternative solution to get the speed you are looking for
The dashboard pulls from data stored in a PDT.
Hey
I suspect you could use the looker API to do this. If you set up a cron-job that hits all of the relevant looks with the drill downs every morning and set the caching rules appropriately I think you could make this happen.
Can anyone confirm that this works with the API?
If we make a request with cached=True does that actually cause it to cache the result from that request (if not already cached)?
Hi cache = True
tells the but whether to use cached results if available or not:
cache=true : use cache if it is available
cache=false : don't use cache even if it is available
cache_only=true : retrieve any results from cache even if the results have expired
However, these endpoints do not set the cache.
So is there an API call that can set the cache?
Hi James,
Yeah, precaching a dashboard can be done with the API, there’s a good outline of how to accomplish this here: Prefetching (3.36+)
However, we generally recommend using datagroups and schedules for this job, since it guarantees the filters will be the ones used by the dashboard. https://docs.looker.com/data-modeling/learning-lookml/caching#specifying_caching_policies_with_datagroup_parameters
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.