You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 5, 2019. It is now read-only.
Each Casbin policy rule is inserted into DB separatedly with an insert into, which causes the performance downgrade. Can you fix it by inserting all policy rules in one statement? Thanks.
The text was updated successfully, but these errors were encountered:
It looks like this was "fixed" in 9892155, with the side-effect of adding potential SQL injection. Please can this change be reverted so that this adapter is safe to use again.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
A user complained in Twitter that the performance of saving policy to PostgreSQL is poor. See the below code:
casbin-postgres-adapter/adapter.go
Lines 162 to 191 in 3a172af
Each Casbin policy rule is inserted into DB separatedly with an
insert into
, which causes the performance downgrade. Can you fix it by inserting all policy rules in one statement? Thanks.The text was updated successfully, but these errors were encountered: