![[Spring] N+1문제 발생과 분석](https://cdn.hashnode.com/res/hashnode/image/upload/v1756727965704/8c24d83c-1a9e-4b4d-b733-c130243cbc6b.png)
[Spring] N+1문제 발생과 분석
✍️ 작성하게 된 이유 옷을 관리하는 서비스를 개발하면서 Cloth 엔티티와 그에 연관된 ClothWithAttributes, Attribute 데이터를 함께 조회하는 기능이 필요했다.그런데 연관 데이터를 조회할 때마다 쿼리가 폭발적으로 증가(N+1 문제) 하며, 성능이 급격히 저하되는 상황을 마주하게 되었다. Spring JPA의 대표적인 문제로 N+1임을 알고있었지만, 해결하는 방법은 Fetch Join밖에 몰랐다. 지연로딩되는 필드를 엔티...

![[Project] 날씨에 맞는 옷 추천 서비스 : 지그재그 크롤링 여정 기록 (1) ChromeDriver를 EC2에 설치하기](https://cdn.hashnode.com/res/hashnode/image/upload/v1753843082352/c2452b33-97a4-4148-8ba4-750e5eee6aff.png)
![[Project] 날씨에 맞는 옷 추천 프로젝트: Selenium은 정말 필요한 선택이었을까? - 크롤링 삽질 기록](https://cdn.hashnode.com/res/hashnode/image/upload/v1753343114273/b32cc35e-a2e6-4085-a132-26c72f8792d9.png)
![[Spring] @Cacheable, @CachePut, @CacheEvict](https://cdn.hashnode.com/res/hashnode/image/upload/v1749265456525/51b97bad-f86e-4f0f-9b33-77eaa733176f.png)
![[Project] 🌤️ 날씨에 맞는 옷 추천 서비스를 위한 Gemini API 도입기(with.Spring)](https://cdn.hashnode.com/res/hashnode/image/upload/v1752993966338/d9ad8be1-e645-47f4-91ba-4f995f94fab2.png)
![[Spring] 로컬캐시 vs 분산캐시](https://cdn.hashnode.com/res/hashnode/image/upload/v1749267418892/8e48bc87-5236-4d76-85e7-67271371c08f.png)
![[Spring] 필터와 인터셉터](https://cdn.hashnode.com/res/hashnode/image/upload/v1746863086554/c22dcc04-3450-4c4d-aa14-1ea2d46e0358.png)
![[Spring] @AllArgsConstructor을 지양하는 이유](https://cdn.hashnode.com/res/hashnode/image/upload/v1756719696393/93403110-517d-4d27-bc2c-4596278850f9.png)