Xabaril / Balea

Balea is an authorization framework for ASP.NET Core developers.
Apache License 2.0
246 stars 37 forks source link

query improvements #55

Open pbr1111 opened 4 weeks ago

pbr1111 commented 4 weeks ago

The following changes are implemented in this PR:

These changes significantly improve query performance by removing four joins (many-to-many relationships) and avoiding a cartesian explosion, which would otherwise degrade performance based on the number of users a role is assigned to.

Potential breaking change: This could impact those who have implemented their own store and rely on Balea.Models. However, Balea Server itself remains unaffected, as it returns a custom DTO. Since Balea.Models and the DTO share the same property names, the serializer will omit any additional properties, ensuring compatibility.

Resolves #51