Skip to content

Optimize network list loading performance by using stored authorization status#647

Merged
sinamics merged 3 commits intomainfrom
count-nodes
Apr 15, 2025
Merged

Optimize network list loading performance by using stored authorization status#647
sinamics merged 3 commits intomainfrom
count-nodes

Conversation

@sinamics
Copy link
Copy Markdown
Owner

There was a performance issue caused by making individual API calls to zt controller for each member of each network when loading the network list. For instances with many networks and members, this resulted in hundreds of sequential API calls, significantly increasing network page load time.

This PR will add authorized status to database instead of making API calls.

Note: After updating, users will need to open each network individually to update the authorized status in the database. Until this is done, the "Nodes Act/Tot" column on the network page may display inaccurate information during initial load.

Resolves #638

@github-actions github-actions bot added the ztnet Main Application label Apr 15, 2025
@sinamics sinamics merged commit 4c160e0 into main Apr 15, 2025
3 checks passed
@sinamics sinamics deleted the count-nodes branch April 15, 2025 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ztnet Main Application

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Network list is loading very slow

1 participant