ben-manes commented on issue #761: URL: https://github.com/apache/polaris/issues/761#issuecomment-2755538661
@pingtimeout you could try using the IndexedCache example to see if it would pass your test. It maintains a canonical mapping to the value, but is not strictly race free nor fully avoid redundant queries (e.g. is loaded concurrently by different keys). It is best effort for a cache's purpose which tends to have weaker consistency requirements (e.g. TTL). If strict linearization was required then some type of MVCC would be needed to maintain internal version counters and proper transactions vs map computes. Assuming strict linearization is not required then I'd hope the IndexedCache could be a good fit for this case. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
