casbin / jcasbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Java
https://casbin.org
Apache License 2.0
2.38k stars 461 forks source link

batch enforce is too slow. #289

Closed dijiekstra closed 2 years ago

dijiekstra commented 2 years ago

I use jcasbin 1.22.3 at prod env . We have 20000+ policies, and per query has 200+ resource need to been check . Query will done at least 1s, how can i to improve it ?

casbin-bot commented 2 years ago

@tangyang9464 @imp2002

dijiekstra commented 2 years ago

And i use jprofile to look up slow code , i found query has 80% time to execute expression.execute()

hsluoyz commented 2 years ago

@dijiekstra provide:

hsluoyz commented 2 years ago

Closed as stale