BaseXdb/basex — Issue #411: Dynamic Cache Size in Index Implementation
Author: dimitarp
Created: 2012-03-01 17:10:07+00:00
State: open

A better implementation of IndexCache is needed, which adjusts its size according to the free (i.e. not needed!) memory. java.util.WeakHashMap may be considered as a drop-in (?) replacement for IndexCache.

Use case: ft:tokens('db') does not finish when used with relatively large index due to OutOfMemory. However if the caching in FTFuzzy is disabled (i.e. commented out), the result is successfully returned.