casbin / jcasbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Java

Home Page:https://casbin.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

batch enforce is too slow.

dijiekstra opened this issue · comments

commented

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 ?

commented

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

@dijiekstra provide:

  • Model
  • Policy
  • Request
  • Result

Closed as stale