Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Hey @hsluoyz
We have data in casbin as follows

p groupName, pageName, apiName

g userUUID, tenantUUID, groupName

We have 40k p entries and 200k g entries. Casbin enforcement takes 2-3 secs.

Our model config is

IMG_20231011_082129.jpg

What I am doing wrong here?

As the users base grow we will have lots of g entries and that might make enforcement more slow

We are using synced cached enforcer, first enforcement request takes time, subsequent same requests are delivered from cache so they are fast.

@hsluoyz pls help

1views
2users
1 minread

Does any modifications in p or g make sense ?

@hsluoyz we can't use policy subset loading as we have 400+ tenants and in future this might grow as well, rest we are already using

1 / 4
Oct 2023