Closed edmondchuc closed 1 year ago
This occurs when performing large queries for resource labels.
Solution: break the query into smaller chunks to avoid the java.lang.StackOverFlowError
error. Cache the values using Flask-Caching, which is set up ready to use in tern_flask
.
Nice to have: with caching, use stale-while-evaluate strategy for fast experience for users.
This should likely no longer occur with the introduction of paginated property values on resources in the v2 API https://github.com/ternaustralia/linkeddata-api/pull/51
For large resources with many relationships and properties, fetching the data may result in the following error:
Related issues on the web: