Skip to content

Configuration: Minimize API calls #82

@Ayush8923

Description

@Ayush8923

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:

  1. Go to Configuration > Library page
  2. Open the browser Network tab
  3. Observe the API call:
/api/configs/{config_id}/versions
  1. Then observe multiple follow-up calls:
/api/configs/{config_id}/versions/{version_number}
  1. Notice that multiple API requests are triggered for each version
  2. Repeat with different version multiple configurations → number of API calls increases significantly

Expected behavior
The system should minimise API calls by:

  1. 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 more button or etc. then will be bit optimized structure.
  2. Avoiding multiple per-version API calls.

Screenshots
Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions