HeathKnowles commented on issue #8743:
URL: https://github.com/apache/gravitino/issues/8743#issuecomment-3361521784

   [ReverseIndexCache 
Location](https://github.com/apache/gravitino/blob/main/core/src/main/java/org/apache/gravitino/cache/ReverseIndexCache.java)
   
   Based on the above implementation, `ReverseIndexCache` that is used in the 
`CaffeineEntityCache`, it uses a plain `HashMap` backed by `HashSet` 
collections for values. While this works for simple lookups, the structure is 
not inherently thread-safe and may result in race conditions under concurrent 
access. Additionally, per-element updates like `addAll` loop through values 
individually, which becomes costly for large tag sets. 
   
   To improve, replacing the backing structures with concurrent collections and 
supporting batched or delta updates would reduce contention and improve 
scalability.
   


-- 
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]

Reply via email to