Skip to content
New issue

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

[Tip] JPA save 관련 주의점(성능 관련) #5

Open
iyoungman opened this issue Nov 8, 2020 · 1 comment
Open

[Tip] JPA save 관련 주의점(성능 관련) #5

iyoungman opened this issue Nov 8, 2020 · 1 comment
Labels

Comments

@iyoungman
Copy link
Contributor

iyoungman commented Nov 8, 2020

List를 save 할때

  • 기본적인 컨셉은 하나의 트랜잭션으로 묶는것
  • [1] save 한다면 save 보다는 saveAll
  • [2] for-each를 사용하되 상위 메서드를 @transactional로 묶는다.

Reference

@iyoungman iyoungman added the tip label Nov 8, 2020
@jaeho214
Copy link
Contributor

jaeho214 commented Nov 8, 2020

감사합니둥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants