We are querying the vault and fetching the records which are more than 200 per nodes but getting the following error -
Please specify a PageSpecification as there are more results [201] than the default page size [200]
After increasing the pagination to 400 from the default 200, I am getting java heap out of memory error.
Can you please help.
0
votes
2 Answers
1
votes
You can increase the heap size available to the node by following the instructions here: https://docs.corda.net/running-a-node.html#starting-an-individual-corda-node.
If you continue to get an out-of-memory exception, you should either increase the memory allocated to the Java process further, or inspect your node's database to see if the transaction objects are abnormally large.
0
votes
you can always add pagination logic for fetching the large number of records. please find the this link : https://docs.corda.net/docs/corda-os/4.5/api-vault-query.html