Skip to content

Commit

Permalink
Add parallelStream for getClinicalDataCounts
Browse files Browse the repository at this point in the history
  • Loading branch information
haynescd committed Jul 6, 2023
1 parent a869c2a commit 34425b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public List<ClinicalDataCountItem> getClinicalDataCountsFromColumnStore(StudyVie

return studyViewRepository.getClinicalDataCounts(studyViewFilter, categorizedClinicalDataCountFilter, filteredAttributes)
.stream().collect(Collectors.groupingBy(ClinicalDataCount::getAttributeId))
.entrySet().stream().map(e -> {
.entrySet().parallelStream().map(e -> {
ClinicalDataCountItem item = new ClinicalDataCountItem();
item.setAttributeId(e.getKey());
item.setCounts(e.getValue());
Expand Down

0 comments on commit 34425b0

Please sign in to comment.