Problem Description
Currently, SigNoz remembers the last-used time range for each page (per-page persistence).
This behaviour causes an issue when
- A user explores data for a long duration (e.g., 30d or 90d) to check patterns.
- They then navigate away from that page or close the browser tab.
- When they return to the same page later, SigNoz automatically reloads that long-duration query again, consuming unnecessary resources and putting load on the database.
This can be especially problematic in production environments where:
- Multiple users access the same dashboards.
- Queries over long durations are costly.
- Dashboards auto-refresh, compounding the issue.
Proposed Solution
Introduce a setting or environment variable such as
DISABLE_TIME_RANGE_PERSISTENCE=true
When enabled
- SigNoz will always load the page with the default time range (e.g. 15m or 1h).
- It will not remember or restore the last-used time range for that page.
Alternatives you've considered
- We have asked teammates to manually reset the time range to 5m before leaving any page but this is error-prone and not reliable.