How to avoid query caching in live data models
How to avoid query caching in live data models
Step-by-Step Guide:
Understanding the Effects of Caching:
- When data is updated with SQL statements (e.g., updates in Snowflake), Sisense's query caching might not immediately reflect these updates.
- Widget refreshes might still show the cached data instead of the latest updates.
Adjusting Live Model Query Settings:
- You can manage caching behavior by adjusting the LiveResultsCacheSize and LiveResultsCacheTimeout parameters.
- Access Configuration Manager:
- Navigate to the 'Admin' tab.
- Go to 'Server & Hardware' settings.
- Configure 'Query Service' settings by clicking the Sisense logo five times.
- Modify Query Service Parameters:
- Locate and adjust the LiveResultsCacheSize and LiveResultsCacheTimeout values. Setting a smaller value can reduce the caching duration.
- Save the changes.
Using Automatic Refresh:
- Enable 'Automatic Refresh' under Live Model Query Settings:
- This setting allows dashboards to refresh automatically at intervals specified by the Refresh Rate.
- Note: A minimal refresh rate can be set to 2 seconds.
- Considerations:
- Frequent automatic refresh may lead to increased query costs.
Force Fresh Queries:
- Unfortunately, Sisense does not support bypassing the live model query cache entirely.
- While automatic refresh or adjusting cache settings can help, forcing a fresh query every time is not feasible within current configurations.
Published 03-28-2025
ihoryokhym
Sisense Employee
Joined December 24, 2021