Files
mirror-3x-ui/internal/web
Aloneangel20 0d9fe154ee perf(nodes): list nodes without the dashboard statistics in background jobs (#7235)
The node traffic sync and heartbeat jobs run every 5 seconds and listed nodes through GetAll, which also built the Nodes page statistics: a distinct-client count and a join over every client on a node-hosted inbound with its traffic row. Neither job reads those numbers, and neither do the Xray config build or the reset-all fan-out. With sub-nodes present the Nodes tree ran the same classification twice.

Those callers now take ListOperational, a plain ordered node list with decrypted tokens. GetNodeTree adds the statistics once, and only the client count when a transitive tree recounts the rest itself. GetAll is gone, since nothing reads it any more.

The Nodes page shows the same counts. On a master with 20,000 clients across eight node inbounds (SQLite), idle master CPU went from about 13.1 s to 12.3 s per minute.

Closes #7232
2026-11-28 08:42:41 +03:30
..