Tips
Filtering
While any field can be used to filter down responses, it is recommended to use chainName and timestamp whenever possible to speed up querying time.
Ordering
As with filtering, timestamp and chainName will provide the fastest queries.
Linked Types
While using Linked Types/Object Types is possible it significantly slows down the query response time.
For example, try not to use the fills type inside a transaction query nor vise-versa.
Pagination
Responses are limited to 1000 items per request, to go beyond that limit use Ordering, limit and offset. If the offset goes beyond the number of existing items the response will be an empty array.
If the result set is very large, like in a historical export, the best would be to iterate, first through chainName then timestamp and then use pagination. See Historical Datafor an example.
Historical Data
Sometimes, historical data is needed for reporting purpose, and it might take a long time to process all of them. It is recommended that you do pagination along with relevant filters on chains and timestamp. The following code snippet is an example
Last updated