Optimize MCP permission checking with single ArtifactGroupMembers query
- Replace per-service permission checks with single query to ArtifactGroupMembers - Replace per-entity permission checks with single query to ArtifactGroupMembers - Use Set for O(1) permission lookups instead of repeated hasPermission() calls - Reduces transaction count from hundreds to just 2-3 total transactions - Maintains same security model while dramatically improving performance - Critical for scaling MCP interface with large Moqui installations
Showing
1 changed file
with
40 additions
and
15 deletions
-
Please register or sign in to post a comment