-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Joomla Permissions Issue - Slow Performance and Timeouts with Non-Super Users #43649
Comments
This happens because joomla-cms/libraries/src/Access/Access.php Line 269 in 2d99f3b
I set it as bug, however I have no idea how it can be fixed. It probably for all Joomla versions. Cannot find older similar issue about it. |
This comment was marked as outdated.
This comment was marked as outdated.
I tried changing $preload to $preload = false in joomla-cms/libraries/src/Access/Access.php at line 155, but the issue still persists. |
This comment was marked as outdated.
This comment was marked as outdated.
After some testing, I think the actual slowdown is somewhere in joomla-cms/administrator/components/com_content/src/Model/ArticlesModel.php Lines 232 to 266 in 50726be
it takes a few seconds to load 20 articles from 40k on my test. Access preloading still preloads a lot, but it is doing it fast. |
It sems a few things:
When I removing them, everything works much faster. |
Ah, it the same as #43701 I missed it, sorry. |
@Fedik No idea. Is already the part which you have linked (lines 232 to 266) so slow, without all that stuff which might be added later below? What I remember from some other issue is that it could be faster when changing the 3 inner joins to the workflow tables to left joins: joomla-cms/administrator/components/com_content/src/Model/ArticlesModel.php Lines 264 to 266 in 50726be
|
Yea, with LEFT it 0.5s faster, but still slow in total 😄 it probably would be much smarter to split it to few queries: Okay, maybe not that easy. |
Kill workflow, problem solved :) |
It is not only workflow |
but it makes no sense to query workflow tables when its not being used. |
Issue with access check hopefully will be fixed in #44078. |
Description:
I am experiencing performance issues with Joomla permissions on version 5.1.1. I created a group intended to have backend access, specifically to create or edit content. While everything works fine in general, accessing Content >> Articles is extremely slow and often times out or crashes the page. This issue arises when attempting to list articles. However, this problem does not occur when you log in as a Super User.
Steps to Reproduce:
Expected Result:
The articles list should load efficiently without significant delay or timeouts.
Actual Result:
The page loads extremely slowly, often timing out and crashing.
Debugging Information:
Using the Joomla debugging tool, we discovered that:
Screenshot:
The attached screenshot shows a profile trace comparison:
Attachment
Question:
Can you confirm if this is a bug or native Joomla behavior?
Environment:
Additional Information:
The issue seems to be tied to how Joomla processes permissions for non-Super Users, causing a performance bottleneck when listing a large number of articles. Any insights or workarounds to alleviate this issue would be greatly appreciated.
The text was updated successfully, but these errors were encountered: