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

Assistance with pagination limit #636

Open
hyryuki opened this issue Nov 6, 2024 · 1 comment
Open

Assistance with pagination limit #636

hyryuki opened this issue Nov 6, 2024 · 1 comment
Assignees
Labels

Comments

@hyryuki
Copy link

hyryuki commented Nov 6, 2024

Hello, I am currently working with the API (GET/{branch}/concepts endpoint) for data analysis, and I have encountered a limitation regarding pagination. Specially, I am unable to retrieve all the data due to the pagination limits enforced on the endpoint. When using the unlimited pagination (searchAfter) I get the following error:
"Unlimited pagination of the full concept representation is disabled in the deployment"
Given that I need to analyze all available data, this limitation poses a significant challenge.

Questions:

  1. is there any possibility to enable unlimited pagination for my deployment or is this a global restriction for all users?
  2. If unlimited pagination cannot be enabled, do you have any alternative suggestions or best practices for retrieving all the data efficiently? For example, are there specific parameters or methods I could use to maximize the amount of data retrieved per request?

Thank you for your help, and I look forward to your response!

@kaicode kaicode self-assigned this Nov 6, 2024
@kaicode
Copy link
Member

kaicode commented Nov 6, 2024

Unlimited concept pagination can be enabled for your deployment using this configuration option:

--snowstorm.rest-api.allowUnlimitedConceptPagination=true

It's set to false in the default configuration: https://github.com/IHTSDO/snowstorm/blob/10.4.2/src/main/resources/application.properties#L24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants