Skip to content

[Bug]: API Call Optimization and Loading Performance #1848

Open
@adnanqaops

Description

@adnanqaops

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Following Endpoints / Features need fixes for Optimisation and Loading Performance :
[ Copying the message from Thomas ]

As previously discussed, too many API calls are made when loading the page for the first time:

  • enterprise/license: called twice
  • environment/list: called twice
  • api-service-lowcoder.cloud/api/flow: called three times
  • myorg: This should only be fetched when the org-related UI is loaded (i.e., the settings/workspace and switch workspace pages, which are accessed via avatar click).
  • folder/element: folder/element?pageNum=1&pageSize=10&applicationType=ALL&name=&category= should be changed to and should only be called when visiting the App page.
  • It appears that data from these two APIs is not being stored in Redux or Context. The endpoints should only be called in their respective locations.
  • On the datasource page, datasources/listByOrg? is called twice. We need update this to use the endpoint with pagination parameters, and avoid other unnecessary calls.

Expected Behavior

Kindly, resolve the mentioned issues.

Steps to reproduce

Feature list has been mentioned above. Issues can be found easily from there.

Environment

Local + Cloud

Additional Information

No response

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Status

🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions