납품데이터 등록 수정
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user