Ver código fonte

stl partition

Karen Kho 8 anos atrás
pai
commit
432ae507b2

+ 27 - 0
crss-settlement-task-calculation/crss-settlement-task-calculation-devlocal.yml

@@ -34,3 +34,30 @@ spring:
     properties:
       hibernate:
         generate_statistics: false
+        dialect: org.hibernate.dialect.PostgreSQL81Dialect
+        ddl-auto: validate
+        hbm2ddl:
+          import_files:
+
+  batch:
+    job:
+      enabled: true
+
+batch:
+  resourceLocation: "file:target/libs/crss-settlement-task-calculation-2.0.0.RC6.jar"
+  chunkSize: 15
+  maxWorkers: 3
+  partitionSize:
+    retDat: 15
+    retBcq: 15
+    calcEta: 15
+    disAggBcq: 15
+    disAggBcqSeller: 15
+    disAggBcqBuyer: 15
+
+logging:
+  level:
+    com.pemc.crss.settlement.task.calculation: DEBUG
+    com.netflix: DEBUG
+    org.springframework.cloud: DEBUG
+    org.hibernate.stat: debug

+ 11 - 0
crss-settlement-task-calculation/crss-settlement-task-calculation.yml

@@ -73,6 +73,17 @@ spring:
     host: localhost
     port: 6379
 
+batch:
+  chunkSize: 100
+  maxWorkers: 10
+  partitionSize:
+    retDat: 1500
+    retBcq: 1500
+    calcEta: 1500
+    disAggBcq: 1500
+    disAggBcqSeller: 1500
+    disAggBcqBuyer: 1500
+
 logging:
   level:
     com.pemc: DEBUG