Skip to content

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

Description

@iyoungman

List를 save 할때

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

Reference

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions