spicedb icon indicating copy to clipboard operation
spicedb copied to clipboard

Language Server warnings for slow permissions definitions

Open jzelinskie opened this issue 5 months ago • 1 comments

Problem Statement

Currently it's somewhat difficult to reason about the performance of a particular permission definition during schema development.

Solution Brainstorm

While we cannot know the distribution of data in the system until we're working against a live SpiceDB deployment, we can detect the level of nesting and use of costly operators (intersection, negation) to come up with a score and throw a warning when a definition is over a particular score.

jzelinskie avatar Sep 06 '24 19:09 jzelinskie