Default Caching
Data Hub uses Guava caching to improve performance by caching metadata.
Guava cache is a simple library that provides flexible and powerful caching features. Guava cache can be used when fast access is needed, and when values are retrieved multiple times. The needs described previously can be catered to by a ConcurrentMap implementation. However, a cache removes entries automatically by given constraints such as time, size, and so on. As a result, automatic eviction of entries makes cache better in terms of load-balancing. Data Hub uses Guava caching, and you can configure it as shown in the following table.
| Configuration Property | Default Value | Description |
|---|---|---|
| datahub.data.item.attribute.cache.size | 10000 | Maximum size of the local cache of the DataItemAttributes |
| datahub.data.item.attribute.list.cache.size | 500 | Maximum size of the local cache for the complete list of DataItemAttributes by type |
| datahub.model.definition.cache.size | 1000 | Maximum size of the local cache of DataItemAttributes for a CanonicalAttributeDefinition |
| datahub.raw.attribute.cache.size | 1000 | Maximum size of the local cache of DataItemAttributes for the raw attribute referred to by a CanonicalAttributeDefinition |