3 ms·
How does this handle pagination and also how does it behave towards rate limiters? For example, my API (keygen.sh) has a page size limit of 100, and often times
by ezekg 4y ago
How does this handle pagination and also how does it behave towards rate limiters? For example, my API (keygen.sh) has a page size limit of 100, and often times there can be hundreds or even thousands of pages for certain resources. How would Steampipe handle `select count(*) from keygen_licenses` while obeying the rate limiter? What if a heavy query is run twice?
- judell 4y agoPagination may be handled by the API's golang SDK, if not that's a responsibility of the plugin author. The plugin SDK provides a default retry/backoff mechanism, and the plugin author can enhance that. If a heavy query runs twice it'll load from cache the second time, if within the (user-configurable) cache TTL.