We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
打印sql日志发现每次判断权限都需要查询全表,如果表数据很大这样查询效率非常低吧
The text was updated successfully, but these errors were encountered:
@imlida 不调用数据库的话还好吧,Casbin可以在内存中查询策略
Sorry, something went wrong.
那只能把单独建一张表来存储用户角色,这里只做角色授权了,如果授权角色也存在这张表的话有几万个用户那这张表就会有几万条记录,没办法查询了。
规则常驻内存,并不是每次判断都会查询数据库,前提是未重启Hyperf、未修改规则
No branches or pull requests
打印sql日志发现每次判断权限都需要查询全表,如果表数据很大这样查询效率非常低吧
The text was updated successfully, but these errors were encountered: