fboucquez / symbol-bootstrap

A tool that allows you to quickly configure and setup Symbol testnets and nodes.
Apache License 2.0
47 stars 28 forks source link

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

Open ishidad2 opened 10 months ago

ishidad2 commented 10 months ago

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