salatmann20
11/10/2025, 9:24 AMyetitwo
11/10/2025, 11:49 AMoptional_limit set don't have any `LIMIT`s on them? that's surprising to me. we do know that with the current implementation of lookupresources, there are limitations to how much an optional_limit can reduce the required work; we have a new iteration of the implementation that should improve that but we're still ironing out some bugs.
1. materialize is impressively fast (imo) if you fit within its scaling boundaries and are willing to tolerate its update lag (think on the order of 5s). it does have some limitations around intersections, exclusions, and wildcards, so it's going to depend on y'all's schema to some degree. if you're interested in talking to someone about it i can help you set up a meeting.
1. probably not. unbounded LRs with large numbers of reachable permissions will always perform poorly.
we ran into a similar issue at my old company as well. the first iteration of our schema connected every resource to a platform object and then had a permission path that ran through that object, and admins had the same issue of LRs trying to return the world. what we ended up doing was forcing admins to impersonate end users and/or elevate their permissions on a particular resource rather than treating it as something where they could see everything. another approach that we considered that may work for you is to have two permission paths on the list endpoint - one asking whether the user is an admin, in which case return everything, and then the normal one that uses LR.Joey
11/10/2025, 5:26 PMlimit is specified, drastically reducing overheadsalatmann20
11/11/2025, 8:47 AMyetitwo
11/11/2025, 3:11 PM