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);