Skip to content

Paginate the queries that are sent to df-sql #538

@jamiehewitt15

Description

@jamiehewitt15

We should paginate the queries that we send to df-sql so that we are not requesting all of the data at once.

To paginate the basic query we can use the following request:

{
  "query": {
    "round": 0
  },
  "sort": {
    "volume": -1
  },
  "limit": 100,
  "offset": 0
}

That will return the first 100 results. To request the next 100 results we have to increase the offset:

{
  "query": {
    "round": 0
  },
  "sort": {
    "volume": -1
  },
  "limit": 100,
  "offset": 100
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions