Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ public class CacheEnabledConfig {
@PostConstruct
public void init() {
this.enabled = enableCache(cacheType);
LOG.info("Cache is enabled: " + this.enabled);
this.enabledClickhouse = enableCache(cacheTypeClickhouse);
LOG.info("Cache is enabled for clickhouse: " + this.enabledClickhouse);
// for cpu performance purpose, the logged info styling was changed is changed
LOG.info("Cache is enabled: {}", this.enabled);
this.enabledClickhouse = enableCache(cacheTypeClickhouse);
// for cpu performance purpose, the logged info styling was changed is changed
LOG.info("Cache is enabled for clickhouse: {}", this.enabledClickhouse);
}

public static boolean enableCache(String cacheType) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.cbioportal.legacy.persistence.mybatis;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.cbioportal.legacy.model.Patient;
import org.cbioportal.legacy.model.meta.BaseMeta;
Expand Down Expand Up @@ -50,7 +50,7 @@ public List<Patient> getAllPatientsInStudy(
String direction) {

return patientMapper.getPatients(
Arrays.asList(studyId),
Collections.singletonList(studyId),
null,
null,
projection,
Expand All @@ -63,7 +63,7 @@ public List<Patient> getAllPatientsInStudy(
@Override
public BaseMeta getMetaPatientsInStudy(String studyId) {

return patientMapper.getMetaPatients(Arrays.asList(studyId), null, null);
return patientMapper.getMetaPatients(Collections.singletonList(studyId), null, null);
}

@Override
Expand Down