Thanks for the details — and you’re right: the Deployments page loads run history (sparklines) for each deployment over the default window, which can get heavy with ~200 flows.
Short answer: in Prefect 3.4.25 there isn’t a server-side or environment-variable setting to change that default window. The UI’s time range is defined in the frontend and is not configurable via settings.
What you can do today:
- Use the UI time range selector: Change the time range in the top-right of the UI to “Last 24 hours.” It applies immediately and typically sticks for the session (persistence beyond a session can vary by browser; there’s no server-controlled default).
- Reduce what’s shown: Filter the Deployments list (e.g., by work pool, tag, or search) to lower the number of flows the page loads at once.
- If you’re open to customization: We can point you to where to patch the UI default in the source and build a custom UI. This requires forking/building the UI and isn’t a quick toggle.
References (for context):
- Flow run history API the UI calls:
Flow run history endpoint
- Self-hosted server docs:
Self-hosted guide
If having a 24-hour default for all users is important for you, I’m happy to open a feature request to make the UI’s default time window configurable on self-hosted instances. Would you like me to file that on your behalf?
Also, if helpful, can you confirm:
- Are you seeing slow page load on first open only, or consistently even after adjusting the time range?
- Roughly how many deployments are visible on that page after filtering?