From 1b481376c3070132fe8c6e53fc68aac8c9fbb4a6 Mon Sep 17 00:00:00 2001 From: bflykky Date: Tue, 27 Aug 2024 23:21:48 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=97=85=EB=A1=9C=EB=93=9C=20=EC=9A=94?= =?UTF-8?q?=EC=B2=AD=20API=20=EB=A1=9C=EC=A7=81=EC=97=90=EC=84=9C=20saveAl?= =?UTF-8?q?l()=EC=9D=84=20=EC=82=AC=EC=9A=A9=ED=95=98=EC=97=AC=20=EC=97=94?= =?UTF-8?q?=ED=8B=B0=ED=8B=B0=EB=A5=BC=20=EC=A0=80=EC=9E=A5=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../umc/naoman/domain/photo/service/PhotoServiceImpl.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/com/umc/naoman/domain/photo/service/PhotoServiceImpl.java b/src/main/java/com/umc/naoman/domain/photo/service/PhotoServiceImpl.java index f5c450f..49aee32 100644 --- a/src/main/java/com/umc/naoman/domain/photo/service/PhotoServiceImpl.java +++ b/src/main/java/com/umc/naoman/domain/photo/service/PhotoServiceImpl.java @@ -169,15 +169,10 @@ public PhotoUploadInfo uploadPhotoList(PhotoUploadRequest request, Member member long startTime = System.currentTimeMillis(); // 사진 URL 리스트를 기반으로 사진 엔티티를 생성하고 DB에 저장 - List photoList = request.getPhotoUrlList().stream() - .map(photoUrl -> checkAndSavePhotoInDB(photoUrl, extractPhotoNameFromUrl(photoUrl), shareGroup)) - .toList(); - /* List photoList = request.getPhotoUrlList().stream() .map(photoUrl -> checkAndCreatePhoto(photoUrl, extractPhotoNameFromUrl(photoUrl), shareGroup)) .toList(); photoRepository.saveAll(photoList); - */ long finishTime = System.currentTimeMillis(); log.info("저장한 사진 개수: {} 장", photoList.size()); log.info("해당 사진 목록을 DB에 저장하는 데 걸린 시간: {} ms", finishTime - startTime);