pessimistic1 PostgreSQL - Spring JPA Lock Timeout 적용하기 Spring JPA에서 비관적 락 (Pessimistic lock) 사용 시 Lock timeout을 함께 적용해주어야 한다. 그렇지 않으면 락을 얻기위해 무한정 대기하게 될 수 있다. DB종류별 LockTimeout 기본값은 다음과 같다. LockTimeout Oracle MySQL PostgreSQL H2 Apache Derby unit of measurement sec sec ms ms sec nowait (or similar) 0 0 1 1 0 min 0 0 1 1 0 max 2.147.483 oo (no internal limit) 2.147.483.647 2.147.483.647 oo (no internal limit) infinite wait -1 N/A 0 N/A N/A default -1.. 2023. 12. 10. 이전 1 다음