-
Notifications
You must be signed in to change notification settings - Fork 0
Home
chinnu joseph edited this page Nov 25, 2023
·
1 revision
- Looker provides a datagroups to invalidate the cache but no feature to re cache the queries unless someone manually open the dashboard and runs it.
- I have a dashboard, whose underlying tables refreshes at odd hours once in a month. The tables are huge, so I cannot predict the time for the end of table load.
- The dashboard queries had better chance of performing better once the queries are cached, atleast the default ones on the dashboard.
- The script should trigger the dashboard from the data engineering job/workflow.
There were 3 solutions to the problem,
- Create a script to open a url in a browser.
Challenges:
- The script gets executed in a cluster (Databricks Cluster), not a UI. The urlopen donot actually open a tab in a browser, and Looker requires dashbaord to be opened for the queries to get triggered.
- Requires embed user creation, which can get messy.
- Create a script using the Looker API, which builds the queries on the dashbaord with default filters applied to it and executes it.
- A Solution with cost associated is to use power automate: create a workflow to open a webbrowser based on a trigger.