Skip to content

Commit

Permalink
Adjust cache size to reduce possibility of OOMs
Browse files Browse the repository at this point in the history
  • Loading branch information
andybradshaw committed Nov 7, 2024
1 parent 0c62d69 commit 97a6f7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public class LegacySchemaTables

public static final List<String> ALL = Arrays.asList(KEYSPACES, COLUMNFAMILIES, COLUMNS, TRIGGERS, USERTYPES, FUNCTIONS, AGGREGATES);

private static final int MUTATION_CACHE_MAX_SIZE = 5;
private static final int MUTATION_CACHE_MAX_SIZE = 2;
private static final Duration MUTATION_CACHE_EXPIRY = Duration.ofMinutes(5);
private static final LoadingCache<UUID, Collection<Mutation>> mutations = CacheBuilder.newBuilder().maximumSize(MUTATION_CACHE_MAX_SIZE).expireAfterAccess(MUTATION_CACHE_EXPIRY).build(new UUIDMutationCacheLoader());

Expand Down

0 comments on commit 97a6f7d

Please sign in to comment.