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
[Question] How can I improve my model to make enforce() execution faster? #829
Comments
I've investigated this question a little bit further and found that using the If I didn't have my super user/domain wildcard requirement, I could achieve the model design without using a domain matching function at all. With all this said, I'd still be interested to know if there's other improvements I should consider. |
@closetool @tangyang9464 |
@closetool which PR? |
🎉 This issue has been resolved in version 2.31.10 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Want to prioritize this issue? Try:
What's your scenario? What do you want to achieve?
I want to know if I've made an inefficient model compared to with what would be considered an optimal casbin model given my requirements?
My model and policies are a mix of RBAC with ABAC which come from my project requirements. It includes a superuser/wildcard concept too. It uses the
matchingDomainForGFunction=keyMatch4
setting.I have 4 roles a user can be assigned: role_creator1, role_presenter1, role_superuser1, role_guestviewer1.
I'm finding single enforce() calls to my model and policy are taking 20-30 seconds to execute using casbin v2.31.4 on production server quality hardware when I have ~2200 policy table entries.
Your model:
Your policy:
Your request(s):
The text was updated successfully, but these errors were encountered: