--- src/main/java/itn/let/mjo/addr/service/impl/AddrServiceImpl.java
+++ src/main/java/itn/let/mjo/addr/service/impl/AddrServiceImpl.java
... | ... | @@ -59,7 +59,7 @@ |
| 59 | 59 |
private static final String PHONE_REGEX = "^(01[016789]-?\\d{3,4}-?\\d{4})$";
|
| 60 | 60 |
private static final Pattern PHONE_PATTERN = Pattern.compile(PHONE_REGEX); |
| 61 | 61 |
private static final Charset EUC_KR = Charset.forName("EUC-KR");
|
| 62 |
- private static final int BATCH_SIZE = 100000; |
|
| 62 |
+ private static final int BATCH_SIZE = 60000; |
|
| 63 | 63 |
// private static final int MAX_ADDR_CNT = 500000; |
| 64 | 64 |
//임시 500만개 |
| 65 | 65 |
private static final int MAX_ADDR_CNT = 5000000; |
... | ... | @@ -469,26 +469,26 @@ |
| 469 | 469 |
|
| 470 | 470 |
startTime = System.currentTimeMillis(); |
| 471 | 471 |
System.out.println("addrListVO.size() : "+ addrListVO.size());
|
| 472 |
- |
|
| 473 |
- if(addrListVO.size() > 0) {
|
|
| 474 |
- // 등록 |
|
| 475 |
- // Batch insert |
|
| 476 |
- try {
|
|
| 477 |
- batchInsertAddrList(addrListVO); |
|
| 478 |
- |
|
| 479 |
- } catch (Exception e) {
|
|
| 480 |
- // TODO: handle exception |
|
| 481 |
- e.printStackTrace(); |
|
| 482 |
- return new StatusResponse( |
|
| 483 |
- HttpStatus.BAD_REQUEST |
|
| 484 |
- , "배치오류" |
|
| 485 |
- , LocalDateTime.now() |
|
| 486 |
- ); |
|
| 487 |
- } |
|
| 488 |
-// addrDAO.insertAddrList(addrListVO); |
|
| 489 |
- |
|
| 490 |
- } |
|
| 491 | 472 |
|
| 473 |
+ try {
|
|
| 474 |
+ if(addrListVO.size() > 0) {
|
|
| 475 |
+ // 등록 |
|
| 476 |
+ // Batch insert |
|
| 477 |
+ batchInsertAddrList(addrListVO); |
|
| 478 |
+ |
|
| 479 |
+ // addrDAO.insertAddrList(addrListVO); |
|
| 480 |
+ |
|
| 481 |
+ } |
|
| 482 |
+ |
|
| 483 |
+ } catch (Exception e) {
|
|
| 484 |
+ // TODO: handle exception |
|
| 485 |
+ e.printStackTrace(); |
|
| 486 |
+ return new StatusResponse( |
|
| 487 |
+ HttpStatus.BAD_REQUEST |
|
| 488 |
+ , "배치오류" |
|
| 489 |
+ , LocalDateTime.now() |
|
| 490 |
+ ); |
|
| 491 |
+ } |
|
| 492 | 492 |
endTime = System.currentTimeMillis(); |
| 493 | 493 |
executionTime = (endTime - startTime) / 1000.0; |
| 494 | 494 |
System.out.println("INSERT Execution time: " + executionTime + " seconds");
|
--- src/main/webapp/WEB-INF/jsp/web/addr/AddrList.jsp
+++ src/main/webapp/WEB-INF/jsp/web/addr/AddrList.jsp
... | ... | @@ -478,9 +478,6 @@ |
| 478 | 478 |
} |
| 479 | 479 |
}, |
| 480 | 480 |
error: function (e) {
|
| 481 |
- //로딩창 hide |
|
| 482 |
- $('.loading_layer').removeClass('active');
|
|
| 483 |
- |
|
| 484 | 481 |
alert("저장에 실패하였습니다.");
|
| 485 | 482 |
alert("ERROR : " + JSON.stringify(e));
|
| 486 | 483 |
}, |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?