Aias00 opened a new issue, #6585: URL: https://github.com/apache/shenyu/issues/6585
## Description `updateSelectorCache` -> `selectorService.listAll()`; `updateRuleCache` -> `ruleService.listAll()`; `updateAppAuthCache` -> `appAuthService.listAll()`; `updateDiscoveryUpstreamDataCache` -> `discoveryUpstreamService.listAll()`; `updateProxySelectorDataCache` -> `proxySelectorService.listAll()`; `updateAiProxyApiKeyCache` -> `aiProxyApiKeyService.listAll()`. All call the no-arg `listAll()` (ALL namespaces), even though `updateMetaDataCache` correctly uses `listAll(namespaceId)`. So a single selector change in namespace A triggers a full-table scan across all namespaces. ## Location ``` shenyu-admin/.../listener/AbstractDataChangedListener.java:353-395 ``` ## Impact Work scales with total system size, not the changed namespace. Wasted DB + CPU proportional to total config on every change. ## Suggested fix Use `listAllByNamespaceId(...)` for all groups (the methods exist). ## Related existing issue(s) None _Identified during the 2026-08-02 audit; full list in [`docs/issue-candidates-2026-08-02.md`](docs/issue-candidates-2026-08-02.md)._ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
