Closed Tinitto closed 1 year ago
For performance reasons when querying all items for a given model, we need to allow a user to specify a form of pagination
In order to leverage familiarity with the fantastic pydantic_aioredis, we can use skip and limit i.e.
skip
limit
Book.select(limit=10, skip=100)
Note: limit and skip should be ignored when ids are specified so as to avoid unexpected results. i.e.
ids
assert Book.select(ids=["Jane Eyre"], limit=0, skip=100) == Book.select(ids=["Jane Eyre"])
For performance reasons when querying all items for a given model, we need to allow a user to specify a form of pagination
In order to leverage familiarity with the fantastic pydantic_aioredis, we can use
skip
andlimit
i.e.Note:
limit
andskip
should be ignored whenids
are specified so as to avoid unexpected results. i.e.