사용자 도구

사이트 도구


java:hibernate:performance

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판 양쪽 다음 판
java:hibernate:performance [2019/01/02 13:11]
kwon37xi
java:hibernate:performance [2019/01/02 13:12]
kwon37xi [autoCommit 을 꺼서 성능 향상시키기]
줄 33: 줄 33:
   * Connection Pool 의 ''auto commit=false''을 항상 켜고, Hibernate 에서 직접 ''auto commit=false'' 하는 것을 막아서 불필요한 ''setAutoCommit()'' 호출로 인한 성능 저하를 줄이기   * Connection Pool 의 ''auto commit=false''을 항상 켜고, Hibernate 에서 직접 ''auto commit=false'' 하는 것을 막아서 불필요한 ''setAutoCommit()'' 호출로 인한 성능 저하를 줄이기
   * [[https://pkgonan.github.io/2019/01/hibrnate-autocommit-tuning|Hibernate setAutoCommit 최적화를 통한 성능 튜닝]]   * [[https://pkgonan.github.io/2019/01/hibrnate-autocommit-tuning|Hibernate setAutoCommit 최적화를 통한 성능 튜닝]]
 +  * [[https://vladmihalcea.com/why-you-should-always-use-hibernate-connection-provider_disables_autocommit-for-resource-local-jpa-transactions/|Why you should always use hibernate.connection.provider_disables_autocommit for resource-local JPA transactions - Vlad Mihalcea]]
   * DBCP 설정의 ''auto-commit: false''로 지정. 이걸 ''true''로 해버리면 트랜잭션이 안 먹음.   * DBCP 설정의 ''auto-commit: false''로 지정. 이걸 ''true''로 해버리면 트랜잭션이 안 먹음.
   * ''hibernate.connection.provider_disables_autocommit: true''로 지정 : 커넥션 풀의 autocommit 을 무조건 따르겠다는 의미.   * ''hibernate.connection.provider_disables_autocommit: true''로 지정 : 커넥션 풀의 autocommit 을 무조건 따르겠다는 의미.
java/hibernate/performance.txt · 마지막으로 수정됨: 2024/03/04 12:47 저자 kwon37xi