Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jamiehewitt15 opened this issue Mar 24, 2023 · 0 comments
Open

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

jamiehewitt15 opened this issue Mar 24, 2023 · 0 comments

Comments

@jamiehewitt15
Copy link
Member

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
}
@jamiehewitt15 jamiehewitt15 added the Type: Enhancement New feature or request label Mar 24, 2023
@trentmc trentmc removed the Type: Enhancement New feature or request label May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants