Commit 5390fe5c4d68f4e397333df3cfefc3194814f666
1 parent
1a9129d085
Exists in
master
and in
6 other branches
update code
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/HiskCountTask.java
View file @
5390fe5
... | ... | @@ -25,7 +25,7 @@ |
25 | 25 | */ |
26 | 26 | public class HiskCountTask implements Callable { |
27 | 27 | |
28 | - private static ExecutorService pool = Executors.newFixedThreadPool(4); | |
28 | + private static ExecutorService pool = Executors.newFixedThreadPool(6); | |
29 | 29 | |
30 | 30 | private PatientsService patientsService; |
31 | 31 | private BasicConfigService basicConfigService; |
... | ... | @@ -57,7 +57,7 @@ |
57 | 57 | |
58 | 58 | if (CollectionUtils.isNotEmpty(riskConfig)) { |
59 | 59 | |
60 | - int batchSize = 10; | |
60 | + int batchSize = 3; | |
61 | 61 | int end = 0; |
62 | 62 | List<Future> futures = new ArrayList<>(); |
63 | 63 | for (int i = 0; i < riskConfig.size(); i += batchSize) { |