We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
userRepository.findByUserId
userRepository.findById
spoonBalanceRepository.findByUser
postRepository.findById
zzimPostRepository.save
zzimPostRepository.findByUser
photoRepository.findFirstByPost
postCategoryRepository.findByPost
locationRepository.findById
zzimPostRepository.countByPost
photoRepository.findByPost
zzimPostRepository.deleteByUserAndPost
reportRepository.save
categoryRepository.findByCategoryId
zzimPostRepository.existsByUserAndPost
scoopPostRepository.existsByUserAndPost
menuRepository.findByPost
categoryRepository.findById
placeRepository.save
postRepository.save
postCategoryRepository.save
forEach(menuRepository::save)
forEach(photoRepository::save)
activityRepository.findById
spoonBalanceRepository.save
spoonHistoryRepository.save
followRepository.findByFollowing
feedRepository.saveAll
categoryRepository.findAll()
categoryRepository.findByCategoryType
scoopPostRepository.save
feedRepository.deleteByUserAndPost
feedRepository.findByUser
postRepository.findByUser
placeRepository.existsByPlaceIdInAndLatitudeAndLongitude
locationRepository.findByLocationNameContaining
기본적으로 하나의 비즈니스 로직에 포함된 여러 쿼리를 @Transaction으로 묶었는데, 이는 예상치 못한 동시성 이슈를 예방함과 동시에, 추후 리팩터링을 수월하게 하기 위한 선택이었습니다.
@Transaction
추후 개선 방향은, 비즈니스 로직 내에서 @Transaction 외부로 빼도 무방하거나, 또는 심한 병목을 유발하는 로직을 분리하여 별도로 처리하는 것입니다.
The text was updated successfully, but these errors were encountered:
dltnals317
airoca
No branches or pull requests
✅ API 별 쿼리 개수 정리
userRepository.findByUserId
userRepository.findById
spoonBalanceRepository.findByUser
postRepository.findById
userRepository.findById
zzimPostRepository.save
zzimPostRepository.findByUser
photoRepository.findFirstByPost
postCategoryRepository.findByPost
locationRepository.findById
zzimPostRepository.findByUser
userRepository.findById
photoRepository.findFirstByPost
postCategoryRepository.findByPost
userRepository.findById
zzimPostRepository.findByUser
postCategoryRepository.findByPost
zzimPostRepository.countByPost
photoRepository.findByPost
userRepository.findById
postRepository.findById
zzimPostRepository.deleteByUserAndPost
postRepository.findById
userRepository.findById
reportRepository.save
postRepository.findById
userRepository.findById
postCategoryRepository.findByPost
categoryRepository.findByCategoryId
zzimPostRepository.countByPost
zzimPostRepository.existsByUserAndPost
scoopPostRepository.existsByUserAndPost
photoRepository.findByPost
menuRepository.findByPost
userRepository.findById
categoryRepository.findById
placeRepository.save
postRepository.save
postCategoryRepository.save
forEach(menuRepository::save)
forEach(photoRepository::save)
activityRepository.findById
spoonBalanceRepository.findByUser
spoonBalanceRepository.save
spoonHistoryRepository.save
zzimPostRepository.save
followRepository.findByFollowing
feedRepository.saveAll
categoryRepository.findAll()
categoryRepository.findByCategoryType
postRepository.findById
userRepository.findById
spoonBalanceRepository.findByUser
scoopPostRepository.save
activityRepository.findById
spoonBalanceRepository.save
spoonHistoryRepository.save
feedRepository.deleteByUserAndPost
userRepository.findById
feedRepository.findByUser
postCategoryRepository.findByPost
postCategoryRepository.findByPost
zzimPostRepository.countByPost
postRepository.findByUser
placeRepository.existsByPlaceIdInAndLatitudeAndLongitude
locationRepository.findByLocationNameContaining
✅ 트랜잭션 전략
기본적으로 하나의 비즈니스 로직에 포함된 여러 쿼리를
@Transaction
으로 묶었는데, 이는 예상치 못한 동시성 이슈를 예방함과 동시에, 추후 리팩터링을 수월하게 하기 위한 선택이었습니다.추후 개선 방향은, 비즈니스 로직 내에서
@Transaction
외부로 빼도 무방하거나, 또는 심한 병목을 유발하는 로직을 분리하여 별도로 처리하는 것입니다.The text was updated successfully, but these errors were encountered: