mbaccari
03/16/2023, 4:41 PMzed
(bypassing our endpoint logic), something like zed permission lookup-resources project read user:2
takes about 10s (even if the user doesn't have access to any resource) which is not ideal when it's needed to load a web page.
Here is a simplified version of our schema: https://play.authzed.com/s/o4iW-IKy0Il7/schema (I tried to keep only stuff related to the read:project permission, for this specific example, but could share the whole schema if it can help). We use intersections and synthetic relations heavily, not sure if those impact latencies. We are looking for general advice on how to improve/simplify our model, or any other advice on what could help reduce latencies of lookup-resources.
Thanks!Joey
03/16/2023, 4:44 PMmbaccari
03/16/2023, 5:24 PMyetitwo
03/16/2023, 7:18 PMJoey
03/16/2023, 7:54 PMmbaccari
03/16/2023, 10:32 PMJoey
03/16/2023, 10:38 PMmbaccari
03/17/2023, 1:43 AMJoey
03/20/2023, 4:28 PMmbaccari
03/20/2023, 4:29 PMJoey
03/20/2023, 4:30 PMmbaccari
03/20/2023, 4:32 PM