nautobot / pynautobot

Nautobot Python SDK
https://pynautobot.readthedocs.io/en/latest/index.html
Apache License 2.0
36 stars 32 forks source link

Allow for manual pagination #106

Closed Kircheneer closed 1 month ago

Kircheneer commented 1 year ago

Currently, explicit pagination on the filter() and all() endpoints is explicitly forbidden (ref). This can lead to problems where the default timing plus page size (50 when I tried it against demo.nautobot.com) is too much load for the system, causing timeouts or similar errors to happen. This paging behavior happens here.

My suggestion would be to keep this default behavior, but allow the user to optionally control paging (i.e. pass limit + offset) themselves so they can control their request size + timing with values that work on their system.