# @Transactional의 해로움 (feat. nested, PostgreSQL)

> Clean Markdown view of GeekNews topic #13095. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=13095](https://news.hada.io/topic?id=13095)
- GeekNews Markdown: [https://news.hada.io/topic/13095.md](https://news.hada.io/topic/13095.md)
- Type: news
- Author: [qurare](https://news.hada.io/@qurare)
- Published: 2024-01-29T15:03:11+09:00
- Updated: 2024-01-29T15:03:11+09:00
- Original source: [channel.io](https://channel.io/ko/blog/bad-transactional)
- Points: 13
- Comments: 1

## Topic Body

- 어느 순간 일어난 급격한 성능 저하로 인한 서비스 장애가 발생  
- 원인을 조사한 결과 트랜잭션이 중첩되었을 때 성능 저하를 확인  
- 중첩된 트랜잭션 자체는 죄가 없는데 무엇이 문제인지 조사  
  - 최근 `@Transactional` 을 사용한 곳이 급격히 증가  
  - 어노테이션 만으로 쉽게 트랜잭션을 적용할 수 있다보니 불필요한 부분에도 사용되었으며 이는 성능 저하로 이어짐  
- 중첩된 트랜잭션은 큰 성능 저하의 원인이 될 수 있으니 트랜잭션을 적용할 때에는 신중해야 할 것

## Comments



### Comment 22664

- Author: quack337
- Created: 2024-01-30T10:02:04+09:00
- Points: 1

유익한 좋은 분석 글 잘 읽었습니다.
