Please implement FilterAdapter
pigochu opened this issue · comments
Becasue every request will query all data from casbin_rule, If i have many domain and user , the result will be very large.
I think FilteredAdapter may fix the problem , but I can not find any example for php version.
Anyone who has implemented it for mysql( or any database ) ? please provide it , thanks.
Conversation moved here from another issue: php-casbin/php-casbin#56
@pigochu Doctrine DBAL Adapter for Casbin, you can use this adapter.
It has implemented FilteredAdapter
, BatchAdapter
, UpdatableAdapter
.
@techoner should we deprecate this adapter to let people use: https://github.com/php-casbin/dbal-adapter instead?
thank you all 👍
@techoner can you help release a new version to composer? Thanks!
OK.