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

Proposal to increase the maximum number of data returned by REST API #403

Open
ishidad2 opened this issue Sep 18, 2023 · 0 comments
Open

Comments

@ishidad2
Copy link

Currently, the maximum number of data returned in the REST API Config generated by Bootstrap is set to 100, but how about setting this maximum to 400?
The files to be modified are as follows.
https://github.com/fboucquez/symbol-bootstrap/blob/dev/config/rest-gateway/rest.json.mustache#L22C12-L22C12

Symbol can store image data etc. in full on-chain, but the current default number of data returned by REST API is Max 100, so many loops are required when acquiring data using SDK etc.
If you make a query in a short time, the REST API will stop responding. Therefore, the number of loops can be reduced by returning a large amount of data with one query.

For reference, the test results of the REST API return of the transaction that wrote image data to the Symbol message are attached below.
https://github.com/ishidad2/symbol-shoestring-build-tool/blob/main/REST_TEST20230915.pdf

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

1 participant