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

Scroll export #6595

Draft
wants to merge 1 commit into
base: development
Choose a base branch
from
Draft

Scroll export #6595

wants to merge 1 commit into from

Conversation

fnocetti
Copy link
Contributor

fixes #2924

PR checklist:

  • Update READ.me ?
  • Update API documentation ?

QA checklist:

  • Smoke test the functionality described in the issue
  • Test for side effects
  • UI responsiveness
  • Cross browser testing
  • Code review

@fnocetti
Copy link
Contributor Author

This PR includes a proof of concept of using the Scroll API from elastic to export more than 10k results.
It implements a scroll method in the search module that returns an iterator. That iterator is then used in the csv exporter module.
To continue this work, testing needs to be taken care of.
If there was a need to consume all of the results at once, an all method could be included into the iterator that leverages the next and hasNext methods of itself to list every result.

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

Successfully merging this pull request may close these issues.

Check and improve CSV Export after Library Pagination
1 participant