Github user samaitra commented on the pull request:
https://github.com/apache/jena/pull/95#issuecomment-212574093
@osma
Hi Osma
Initially I had implemented the caching mechanism based on storing the
resultSet in cache but the challenge was once the resultSet is exhausted then
it will be closed and then when the cache hit happens the resultSet was no
longer iterable as it was closed.
Guava cache do not provide limit over cache size in terms of memory but on
number of entries or a relative weight of entry that can be cached. Another
possible option would be to use time based eviction policy to avoid over
blocking memory for long time.
Regards
Saikat
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---