subql icon indicating copy to clipboard operation
subql copied to clipboard

Update subql-node to use cursors in dictionary queries

Open stwiname opened this issue 1 year ago • 2 comments

It is best practice to use graphql cursors as a way of paginating results (instead of take/skip).

We should update subql-node to use cursors instead of other pagination tools, and also allow it to fall back to the old way if not supported

Also need some testing to ensure that the query performance is there. This may also need some updates to the query service to make sure that cursors are being used properly

stwiname avatar Jun 20 '23 22:06 stwiname

This would need to fall back to current method if cursors aren't supported

stwiname avatar Aug 30 '23 03:08 stwiname

There is an issue with postgraphile v4 which means this isn't possible. This can be reassessed when the query service is updated https://github.com/subquery/subql/issues/1982

stwiname avatar May 10 '24 02:05 stwiname