Skip to content

Commit

Permalink
Merge pull request #111 from upserve/lower_metadata_cache_size
Browse files Browse the repository at this point in the history
lowering cache size to prevent out of memory errors
  • Loading branch information
ls-nicholas-nassar authored Apr 2, 2021
2 parents bdc272a + ea7413c commit 70967c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class LookupMetadata {
private static final Logger log = org.slf4j.LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

// TODO make MAX_BISECT_KEY_CACHE_DEPTH configurable via the FileStoreBuilder
private static final int MAX_BISECT_KEY_CACHE_DEPTH = 11; // Size == 4_096g
private static final int MAX_BISECT_KEY_CACHE_DEPTH = 10; // Size == 2_048
private static final int MAX_TREE_NODES = treeSize(MAX_BISECT_KEY_CACHE_DEPTH);
private final LookupKey[] bisectKeys = new LookupKey[MAX_TREE_NODES];

Expand Down

0 comments on commit 70967c6

Please sign in to comment.