stalwartlabs / webadmin

Web-based admin for Stalwart Mail Server
https://stalw.art
53 stars 14 forks source link

Issue fetching list data #12

Closed ngocnha closed 2 months ago

ngocnha commented 2 months ago

There is an issue with fetching data for lists like accounts, groups, and domains.

Consider a scenario with 1000 accounts. Upon navigating to the accounts page, there will be 1 fetch to retrieve data for rendering the list and an additional 1000 unnecessary fetches occurring simultaneously to gather detailed information for each account. These 1000 fetches are redundant as they are only required when editing a specific account.

mdecimus commented 2 months ago

Where have you seen this happening? The default page size is 10, so the client won't make more than 11 requests per page.

ngocnha commented 2 months ago

Where have you seen this happening? The default page size is 10, so the client won't make more than 11 requests per page.

Yes, there are only 11 requests. I apologize for the inaccuracy of my assumption. My slow internet connection makes the navigation to the accounts page feel like it gets paused momentarily compared to other pages.