Make the group caches unlimited by default
The group caches should be large enough to hold entries for all internal groups otherwise overall Gerrit performance may be poor. Make the group caches unlimited by default and add a note to the documentation. Change-Id: Ieef38b9dda71bf8c7174c1030e069037721f38c8 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -52,12 +52,15 @@ public class GroupCacheImpl implements GroupCache {
|
||||
@Override
|
||||
protected void configure() {
|
||||
cache(BYID_NAME, AccountGroup.Id.class, new TypeLiteral<Optional<InternalGroup>>() {})
|
||||
.maximumWeight(Long.MAX_VALUE)
|
||||
.loader(ByIdLoader.class);
|
||||
|
||||
cache(BYNAME_NAME, String.class, new TypeLiteral<Optional<InternalGroup>>() {})
|
||||
.maximumWeight(Long.MAX_VALUE)
|
||||
.loader(ByNameLoader.class);
|
||||
|
||||
cache(BYUUID_NAME, String.class, new TypeLiteral<Optional<InternalGroup>>() {})
|
||||
.maximumWeight(Long.MAX_VALUE)
|
||||
.loader(ByUUIDLoader.class);
|
||||
|
||||
bind(GroupCacheImpl.class);
|
||||
|
||||
Reference in New Issue
Block a user