Skip to content

Configuration: Minimize API calls #82

Closed

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

Activity

  1. changed the title [-]Performance Issue: Excessive API Calls in Configuration > Library Module[/-] [+]Configuration: Minimize API calls[/+] on Mar 20, 2026
  2. self-assigned this
    on Mar 20, 2026
  3. moved this to In Progress in Kaapi-devon Mar 20, 2026
  4. Ayush8923 commented on Mar 21, 2026

    @Ayush8923
    CollaboratorAuthor

    Also, there are a few more places where multiple API calls are being triggered. We should review these flows as well and try to minimize unnecessary requests.

    1. Evaluation Page
      On the Evaluation page (check the Network tab), multiple API calls are triggered to fetch versions and their corresponding IDs. This data is primarily used in the Configuration dropdown. We should review this flow and explore if there’s a way to reduce the number of API calls.

    2. Version Comparison Flow
      In the flow:

    Evaluation → Select Configuration → Version History → Compare Versions
    

    Currently, data for all versions is fetched upfront. Ideally, we should fetch data only for the selected versions when the user initiates a comparison, instead of loading all version data initially.

    Additionally, we should ensure that each page only fetches the data it actually needs. This will help avoid unnecessary backend load and improve overall performance.

  5. pinned and unpinned a comment on Mar 21, 2026
  6. moved this from In Progress to In Review in Kaapi-devon Mar 23, 2026
  7. Ayush8923 commented on Mar 27, 2026

    @Ayush8923
    CollaboratorAuthor

    This has been completed. Closing this issue.
    PR reference: #83

  8. moved this from In Review to Closed in Kaapi-devon Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

  • Status
    Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions