-
-
Notifications
You must be signed in to change notification settings - Fork 51
N+1 query problem on Users list #558
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
Comments
I have looked at the code and, if I got it right, this is due to how Shield is retrieving list of entities (for each entity in the list there are three more queries to populate various entity properties). While there are only 15 entities in the list, it seems to be ok, but what about a few hundreds? Anyway, if my reading is correct, this is to be reported upstream first. |
So I guess you saw this?: and then it calls this can() What do you mean by upstream? Yes, in general its bad design, also makes it easy to add more stuff in there. |
Nope, this file is never called when simply viewing the list of users (not unless you do search at the top of the window).
I mean Codeigniter Shield. I actually asked about it in Slack, and it appears there is an easy way to fix this. I have mentioned you at that thread. |
I see, but it seems like there will be a similar issue? I will check it. Thanks! I will check Slack :) |
@filisko, so will you try to solve this issue? |
Basically what the title says.
I will try to have a look at it if I have some time.
Thanks
The text was updated successfully, but these errors were encountered: