260305_01_ENH: 쿼리 배치 count 상수명 통일

This commit is contained in:
2026-03-05 12:08:29 +09:00
parent 23ebd7865c
commit ad1c445f5b
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
package com.kri.lge.penetration.service;
import static com.kri.lge.penetration.common.consts.LgePenetrationConst.BATCH_SIZE;
import static com.kri.lge.penetration.common.consts.LgePenetrationConst.INSERT_CHUNK_SIZE;
import static com.kri.lge.penetration.common.consts.LgePenetrationConst.EXCEL_ID;
import com.fasterxml.jackson.core.JsonProcessingException;
@@ -42,7 +42,7 @@ public class UploadService {
public ExcelUploadResultDto uploadData(MultipartFile file){
try (InputStream in = file.getInputStream()) {
List<RowContext> buffer = new ArrayList<>(BATCH_SIZE);
List<RowContext> buffer = new ArrayList<>(INSERT_CHUNK_SIZE);
List<Map<String, String>> failRows = new ArrayList<>();
AtomicInteger total = new AtomicInteger();
@@ -64,7 +64,7 @@ public class UploadService {
buffer.add(new RowContext(rowIndex, row, parsed.entity));
if (buffer.size() >= BATCH_SIZE) {
if (buffer.size() >= INSERT_CHUNK_SIZE) {
flushBuffer(buffer, success, fail, failRows);
}
});