File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
src/main/java/org/cbioportal/legacy/persistence Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,11 @@ public class CacheEnabledConfig {
3333 @ PostConstruct
3434 public void init () {
3535 this .enabled = enableCache (cacheType );
36- LOG .info ("Cache is enabled: " + this .enabled );
37- this .enabledClickhouse = enableCache (cacheTypeClickhouse );
38- LOG .info ("Cache is enabled for clickhouse: " + this .enabledClickhouse );
36+ // for cpu performance purpose, the logged info styling was changed is changed
37+ LOG .info ("Cache is enabled: {}" , this .enabled );
38+ this .enabledClickhouse = enableCache (cacheTypeClickhouse );
39+ // for cpu performance purpose, the logged info styling was changed is changed
40+ LOG .info ("Cache is enabled for clickhouse: {}" , this .enabledClickhouse );
3941 }
4042
4143 public static boolean enableCache (String cacheType ) {
Original file line number Diff line number Diff line change 11package org .cbioportal .legacy .persistence .mybatis ;
22
3- import java .util .Arrays ;
3+ import java .util .Collections ;
44import java .util .List ;
55import org .cbioportal .legacy .model .Patient ;
66import org .cbioportal .legacy .model .meta .BaseMeta ;
@@ -50,7 +50,7 @@ public List<Patient> getAllPatientsInStudy(
5050 String direction ) {
5151
5252 return patientMapper .getPatients (
53- Arrays . asList (studyId ),
53+ Collections . singletonList (studyId ),
5454 null ,
5555 null ,
5656 projection ,
@@ -63,7 +63,7 @@ public List<Patient> getAllPatientsInStudy(
6363 @ Override
6464 public BaseMeta getMetaPatientsInStudy (String studyId ) {
6565
66- return patientMapper .getMetaPatients (Arrays . asList (studyId ), null , null );
66+ return patientMapper .getMetaPatients (Collections . singletonList (studyId ), null , null );
6767 }
6868
6969 @ Override
You can’t perform that action at this time.
0 commit comments