---
title: "Discussion on \"[Spring] N+1문제 발생과 분석\" | Hashnode"
description: "Discussion on \"[Spring] N+1문제 발생과 분석\". ✍️ 작성하게 된 이유\n옷을 관리하는 서비스를 개발하면서 Cloth 엔티티와 그에 연관된 ClothWithAttributes, Attribute 데이터를 함께 조회하는 기능이 필요했다.그런데 연관 데이터를 조회할 때마다 쿼리가 폭발적으로 증가(N+1 문제) 하며, 성능이 급격히 저하되는 상황을 마주하게 되었다.\nSpring JPA의 대표적인 문제로 N+1임을 알고있었지만, 해결하는 방법은 Fetch Join밖에 몰랐다. 지연로딩되는 필드를 엔티..."
url: "https://hashnode.com/posts/spring-n1/68b5a24619c0117252be73a3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [\[Spring\] N+1문제 발생과 분석](https://soyulia.hashnode.dev/spring-n1?utm_source=hashnode&utm_medium=feed)

✍️ 작성하게 된 이유 옷을 관리하는 서비스를 개발하면서 Cloth 엔티티와 그에 연관된 ClothWithAttributes, Attribute 데이터를 함께 조회하는 기능이 필요했다.그런데 연관 데이터를 조회할 때마다 쿼리가 폭발적으로 증가(N+1 문제) 하며, 성능이 급격히 저하되는 상황을 마주하게 되었다. Spring JPA의 대표적인 문제로 N+1임을 알고있었지만, 해결하는 방법은 Fetch Join밖에 몰랐다. 지연로딩되는 필드를 엔티...

Sep 17, 2025 · 6 min read · soyulia.hashnode.dev  
Updated Oct 12, 2025  
Read the article

-   [#jpa](https://hashnode.com/tag/jpa)
-   [#n1](https://hashnode.com/tag/n1)

## Written by

[Soyulia](https://hashnode.com/@soyulia)

@soyulia

  
[View profile](https://hashnode.com/@soyulia)

\# Backend #Java #Spring

Nice to meet u :) Im Backend Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
