Skip to content

[track] RPC pagination and sorting #6348

Open
@cdecker

Description

@cdecker

This issue tracks our progress on pagination and sorting.

Since we had a number of requests asking for pagination, offsetting or limiting of the RPC results, or variants thereof, such as getting the most recent entries and inverting the order, it is a probably a good idea to track this group of features explicitly.

@rustyrussell has a plan on how we should be able to implement pagination without being racy

  • Each result has an explicit sorting order
  • A page is a window over that sorted sequence, with a first and last element in that page
  • The next disjoint window is defined as sequence of elements whose sorting key is larger than the largest from the previous window (next page) or whose sorting key is smaller than the smallest from the previous window

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions