Cache capacity settings

Both modules have a cache for storing the mapping between indexed terms and their internal term IDs. Since character-based terms are too large to be used in indexes and calculations, each term is assigned a unique term ID. The caches in the Term Lexicon Modules allow Sybase Search to obtain the term ID without having to access the Term Lexicon's disk structure. The more terms that a satellite container can cache, the fewer network calls are made to the hub container for unknown terms, improving performance for both indexing and querying.

By default, the cache.capacity setting in the Term Lexicon's configuration file is set to 131072. The cache is most efficient when its value is a power of 2. Since many lexicons generated from a large number of documents can exceed 300,000 terms, consider increasing the cache.capacity to either 262144 or 524288. Increasing the cache on the hub container or single server container improves query time, whereas increasing the cache on a satellite container improves indexing time.