Skip to content

Commit 7f304e3

Browse files
miparnisaritstirrat15
authored andcommitted
update protecting a list endpoint
1 parent aa56e26 commit 7f304e3

File tree

2 files changed

+2
-2
lines changed
  • app/spicedb

2 files changed

+2
-2
lines changed

app/spicedb/concepts/querying-data/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ It's always preferable to perform one call to `CheckBulkPermissions` with N chec
3737

3838
[`LookupResources`](https://buf.build/authzed/api/docs/main:authzed.api.v1#authzed.api.v1.PermissionsService.LookupResources) is a good choice when you need to find all resources of a given type that a specific subject can access. It supports cursoring and works well for moderate result sizes.
3939

40-
If you’re expecting more than ~10,000 results, this isn't ideal. See [this](../modeling/protecting-a-list-endpoint) for more details.
40+
If you’re expecting more than ~10,000 results, this isn't ideal. See [this](../modeling/protecting-a-list-endpoint#checking-with-checkbulkpermissions) for more details.
4141

4242
[Materialize]: /authzed/concepts/authzed-materialize
4343

app/spicedb/modeling/protecting-a-list-endpoint/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ your API, in addition to the overall size of your data.
2323

2424
## Filtering with LookupResources
2525

26-
If the number of resources that a user has access to is sufficiently small, you can use the [`LookupResources`] API to get the full
26+
If the number of resources that a user has access to is small (e.g. less than 10,000 resources), you can use the [`LookupResources`] API to get the full
2727
list of resources for which a user has a particular permission, and then use that as a filtering clause in your database
2828
query.
2929
In python pseudocode:

0 commit comments

Comments
 (0)