N+1문제
![[Spring] MyBatis Collection N+1 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FrvhbW%2FbtrGPqjxb9G%2FAAAAAAAAAAAAAAAAAAAAAB4d0OI23RlT9z8Y3zDzhi36G5ls27_DTx8R0cdC9mBM%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DmxhuL0CPTem1Z7Iax2hz7Dfamb8%253D)
[Spring] MyBatis Collection N+1 문제
결산자료 중 계정항목별로 예산현액과 월계/누계 및 하위거래내역을 아래의 양식으로 출력해주는 기능을 개발했었다. JSON 데이터 추출예시 [ ..., { "mock_code": "DC2022_I080101", "mock_name": "이자수입", "current_budg_amount": 29972, "input_tran_amount": 221, "output_tran_amount": 0, "input_accumulated_amount": 249 "output_accumulated_amount": 0, "balance": 29751, "generalLedgerDetails": [ { "tran_date": "05/31", "tran_input_price": 200, "tran_output_price": 0,..