Implement ListRelations as a single network request instead of multiple Check requests #1591
Open
1 task done
Labels
enhancement
New feature or request
Checklist
Describe the problem you'd like to have solved
While investigating the
openfga/go-sdk
source code to address some performance issues, I discovered that the ListRelations function is actually executing multiple parallel Check requests (see call to BatchCheck and multiple requests within BatchCheck).This approach becomes problematic when managing a high number of relations, such as 300, for several reasons:
Check
requests that can be executed, although this can be mitigated by increasing theMaxParallelRequests
setting.Describe the ideal solution
Ideally, calling
ListRelations
(and evenCheckBatch
for that matter) should result in only a single call to the OpenFGA server, this should help a lot with performance.Alternatives and current workarounds
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: