spicedb
spicedb copied to clipboard
Language Server warnings for slow permissions definitions
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.