Replies: 3 comments 5 replies
-
Here are some thoughts regarding pagination:
|
Beta Was this translation helpful? Give feedback.
-
What is your idea? Provide a use case.We would like to have pagination, as it will allow to manage requests and know in advance approximately how much data will be transferred. As a draft, I might suggest:
That's how it's done in PostgREST: https://api.koios.rest/#overview--pagination-offsetlimit It might also be worth adding Why is it a good idea?Tracking and managing long-running requests. It will also prevent malicious requests to public APIs (we plan to make a free public Kupo cluster, with Cloudflare WAF on top of it, but long-running queries will put a heavy load on it, even to server fails). |
Beta Was this translation helpful? Give feedback.
-
I read what you wrote above. I would like to know if it is possible to implement at least |
Beta Was this translation helpful? Give feedback.
-
Describe your idea, in simple words.
Add limit or proper pagination parameters to the
/matches
endpoint.Why is it a good idea?
It would allow us to index an oracle. We only need the most recent values.
Are you willing to work on it yourself?
Probably. We are looking to pick a chain indexer for our project without having to extend it if possible.
Beta Was this translation helpful? Give feedback.
All reactions