배치 사이즈 수정해서 테스트
This commit is contained in:
parent
645a410e24
commit
118a60fe8b
@ -4180,7 +4180,7 @@ public class MjonMsgDataServiceImpl extends EgovAbstractServiceImpl implements M
|
||||
|
||||
//
|
||||
int instCnt = 0;
|
||||
int batchSize = 5000;
|
||||
int batchSize = (int) Math.ceil((double) mjonMsgSendVOList.size() / 3); // Batch 크기 계산
|
||||
// Batch 처리
|
||||
for (int i = 0; i < mjonMsgSendVOList.size(); i += batchSize) {
|
||||
System.out.println(" i :: "+ i);
|
||||
@ -4200,6 +4200,7 @@ public class MjonMsgDataServiceImpl extends EgovAbstractServiceImpl implements M
|
||||
// 실행 시간 계산 (밀리초 -> 초로 변환)
|
||||
double executionTimeInSeconds = (endTime - startTime) / 1000.0;
|
||||
// 실행 시간 출력
|
||||
System.out.println("batchSize :: " + batchSize);
|
||||
System.out.println("Execution time :: " + executionTimeInSeconds + "초 " + "// insert Cnt :: "+instCnt);
|
||||
// mjonMsgSendVOList.stream().forEach(t-> System.out.print(t.toString()+"\n") );
|
||||
// mjonMsgSendVOList.stream().forEach(t-> System.out.print(t.toString()+"\n") );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user