Skip to content

Change page-size behavior for fga tuple read #568

@aaguiarz

Description

@aaguiarz

Currently, If you run:

fga tuple read  --max-pages=0

The CLI will get all the tuples in the model, using the default page size which is 50. Given we want to read all tuples, it will be more efficient to use the max page-size which is 100. We could also allow specifying the page-size instead of always using 50.

We should set the max-pages according to this rules:

  • When max-pages=0, default page-size should be 100
  • When max-pages!=0, default page-size should be 50. It's the current behavior and changing it might be a breaking change.
  • If page-size is specified as a parameter, always use whatever is specifiedl

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions