Merge pull request '납품데이터 등록 수정' (#171) from feat/training_260324 into develop

Reviewed-on: #171
This commit was merged in pull request #171.
This commit is contained in:
2026-03-25 12:38:56 +09:00

View File

@@ -712,9 +712,6 @@ public class DatasetService {
String targetYyyy = fileNameStr[2];
String mapSheetNum = fileNameStr[3];
int batchSize = 500;
int i = 0;
if (json != null && json.path("features") != null && !json.path("features").isEmpty()) {
for (JsonNode feature : json.path("features")) {
@@ -755,12 +752,6 @@ public class DatasetService {
} else {
datasetCoreService.insertDatasetTestObj(objRegDto);
}
// batch flush
if (++i % batchSize == 0) {
em.flush();
em.clear();
}
}
}
}