납품데이터 등록 수정 #171
@@ -712,9 +712,6 @@ public class DatasetService {
|
|||||||
String targetYyyy = fileNameStr[2];
|
String targetYyyy = fileNameStr[2];
|
||||||
String mapSheetNum = fileNameStr[3];
|
String mapSheetNum = fileNameStr[3];
|
||||||
|
|
||||||
int batchSize = 500;
|
|
||||||
int i = 0;
|
|
||||||
|
|
||||||
if (json != null && json.path("features") != null && !json.path("features").isEmpty()) {
|
if (json != null && json.path("features") != null && !json.path("features").isEmpty()) {
|
||||||
|
|
||||||
for (JsonNode feature : json.path("features")) {
|
for (JsonNode feature : json.path("features")) {
|
||||||
@@ -755,12 +752,6 @@ public class DatasetService {
|
|||||||
} else {
|
} else {
|
||||||
datasetCoreService.insertDatasetTestObj(objRegDto);
|
datasetCoreService.insertDatasetTestObj(objRegDto);
|
||||||
}
|
}
|
||||||
|
|
||||||
// batch flush
|
|
||||||
if (++i % batchSize == 0) {
|
|
||||||
em.flush();
|
|
||||||
em.clear();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user