Description
On our dev.coder instance we currently have 577 workspaces. With no filters applied, I've found that switching from the first page of workspaces to the second takes 6 seconds, whilst the UI provides no feedback the next page is loading.
Of note is that the query for actually retrieving that second page of workspaces isn't particularly slow, the browser dev tools indicate the query to api/v2/workspaces?page=2&limit=25&offset=25
takes ~500ms. Also of note is that this request isn't sent immediately on click, it (weirdly) takes a few seconds to appear in the dev tools.
Given this, I suspect this is a primarily frontend issue.
I also note that when changing page, the frontend queries /api/v2/workspacebuilds/{id}/parameters
for all visible workspaces, which may potentially be contributing to the unresponsiveness, but only by a few hundred milliseconds.