batch 사이즈 5만으로 늘림

This commit is contained in:
hehihoho3@gmail.com 2024-12-05 10:24:26 +09:00
parent 4f0358ca40
commit 09146af48d
2 changed files with 10 additions and 2 deletions

View File

@ -4269,7 +4269,9 @@ public class MjonMsgDataServiceImpl extends EgovAbstractServiceImpl implements M
long totalStartTime = System.currentTimeMillis();
int totalSize = mjonMsgSendVOList.size(); // 데이터 개수
int batchSize = 10000; // Batch 크기 설정 (고정값)
// Batch 크기 설정 (고정값)
// int batchSize = 10000; 465
int batchSize = 50000;
log.info("총 데이터 개수 :: [{}] ", totalSize);
log.info("설정된 Batch 크기 :: [{}] ", batchSize);

View File

@ -1310,7 +1310,13 @@ function sendMsgAjax_advc(){
const endTime = new Date();
const elapsed = (endTime - startTime) / 1000; // 밀리초 -> 초로 변환
console.log('AJAX 요청 성공, 경과 시간 : ', elapsed);
if (elapsed >= 60) {
const minutes = Math.floor(elapsed / 60); // 분 계산
const seconds = Math.floor(elapsed % 60); // 초 계산
console.log('AJAX 요청 성공, 경과 시간 : ' + minutes + '분 ' + seconds + '초');
} else {
console.log('AJAX 요청 성공, 경과 시간 : ' + elapsed + '초');
}