-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Describe the bug
In the Configuration > Library module, multiple unnecessary API calls are being triggered. The system first fetches a batch of versions and then makes additional API calls for each individual version. This results in a large number of requests (N+1 issue), which can impact performance and potentially overload the backend when multiple users access the page simultaneously.
To Reproduce
Steps to reproduce the behavior:
- Go to Configuration > Library page
- Open the browser Network tab
- Observe the API call:
/api/configs/{config_id}/versions
- Then observe multiple follow-up calls:
/api/configs/{config_id}/versions/{version_number}
- Notice that multiple API requests are triggered for each version
- Repeat with different version multiple configurations → number of API calls increases significantly
Expected behavior
The system should minimise API calls by:
- To get the data like batch wise like first we need to show 5-10 version then fetch the next config version when the user clicks on the
Load morebutton or etc. then will be bit optimized structure. - Avoiding multiple per-version API calls.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Type
Projects
Status
In Progress
