Language Server warnings for slow permissions definitions #2058
Labels
area/lsp
Affects the language server
area/tooling
Affects the dev or user toolchain (e.g. tests, ci, build tools)
kind/proposal
Something fundamentally needs to change
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.
The text was updated successfully, but these errors were encountered: