Indexes lacking in securitygroups_acl_roles #10539
Labels
Area: Databases
Issues & PRs related to all things regarding databases
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Severity: Moderate
Key function failed, but no or little impact
Status:Fix Proposed
A issue that has a PR related to it that provides a possible resolution
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
The table securitygroups_acl_roles wich relates security groups with roles only has the primary index but not the needed index to query the roles assigned to a security group.
In situations where a lot of SGs exist this can cause a problem due to the excessive time wated by the query.
Possible Fix
Include the index definition via vardefs
Steps to Reproduce the Issue
Context
Those query getting stuck made that some user could not login until some minutes passed.
Version
7.12.12
What browser are you currently using?
Chrome
Browser Version
No response
Environment Information
MAriaDB, PHP 7.4
Operating System and Version
Debian
The text was updated successfully, but these errors were encountered: