Skip to content
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

Children() method run slowly #112

Open
P-A-C opened this issue Nov 30, 2018 · 15 comments
Open

Children() method run slowly #112

P-A-C opened this issue Nov 30, 2018 · 15 comments

Comments

@P-A-C
Copy link

P-A-C commented Nov 30, 2018

Children() method takes a lot of time to return the child roles, is this normal?
I specify, I handle a lot of roles.
If it's normal, how do I get around it?

@abiusx
Copy link
Contributor

abiusx commented Nov 30, 2018 via email

@P-A-C
Copy link
Author

P-A-C commented Dec 3, 2018

Of course, I understand that this method should not be misused, but I waited almost 15 seconds to start listing and displaying the roles.
Is there a possible system to reduce this time?

@abiusx
Copy link
Contributor

abiusx commented Dec 3, 2018 via email

@P-A-C
Copy link
Author

P-A-C commented Dec 3, 2018

no, I assure you that I didn't changed anything on the database.
I only used the implemented methods and did my tree.

@abiusx
Copy link
Contributor

abiusx commented Dec 3, 2018 via email

@P-A-C
Copy link
Author

P-A-C commented Dec 3, 2018

almost a thousand

@abiusx
Copy link
Contributor

abiusx commented Dec 3, 2018 via email

@P-A-C
Copy link
Author

P-A-C commented Dec 3, 2018

of course here it is.

rbac.zip

@abiusx
Copy link
Contributor

abiusx commented Dec 3, 2018 via email

@P-A-C
Copy link
Author

P-A-C commented Dec 3, 2018

sorry
rbac.txt

@P-A-C
Copy link
Author

P-A-C commented Dec 3, 2018

and I do my test of children methode on role_id == 647 (ROLE_MANAGER/1) an dit takes a lot of time

@abiusx
Copy link
Contributor

abiusx commented Dec 3, 2018 via email

@P-A-C
Copy link
Author

P-A-C commented Dec 3, 2018

Yes, I will try to reduce my roles, permissions and relationships. I will also replace the slashes with another character.
If the problem persists, I will come back to this topic.
Thank you so much.

@abiusx
Copy link
Contributor

abiusx commented Dec 3, 2018 via email

@P-A-C
Copy link
Author

P-A-C commented Dec 3, 2018

Okay.
thank you for being so available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants