skill/Etc 15

[JPA] Lazy Loading 사용 할때 성능 문제 : N+1

JPA :  N + 1 문제 원인- 하나의 부모 엔터티를 조회 하면, 관련된 N개의 자식 엔터티를 개별적으로 조회 하면서 총 N+1 번의 쿼리가 실행- JPA에서 Lazy Loading을 사용할 때 발생하는 문제문제발생 예제@Entity@Getter @Setterpublic class Notice { @Id @GeneratedValue private Long id; private String title; @OneToMany(mappedBy = "notice", fetch = FetchType.LAZY) private List noticeFiles = new ArrayList();}@Entity@Getter @Setterpublic class NoticeFile { ..

skill/Etc 2025.03.10

MAC .jmx 실행 및 요약보고서 Error 확인 방법 - jmeter (성능테스트)

일단 jmeter 설치 $brew install jmeter jmeter 실행 : 콘솔에 jmeter 입력 하면 프로그램 열림 $jmeter 실행 하려는 .jmx 파일 열기. 테스트 실행 후 결과는 ‘요약 보고서’ 확인! 요약 보고서의 Error 를 확인 하고 싶을 때는 요약 보고서 폴더에서 우클릭 > Add > Listener > View Results Tree 클릭 요약 보고서 밑의 View Results Tree 확인 : 빨간색 에러 결과 확인! View Results Tree 에러만 보고 싶을 때는 표 상단 Log/Display Only : Error 체크

skill/Etc 2023.03.30

Gradle sync failed: No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.2 was found Error

-- gradle build error A problem occurred configuring root project 'test-project'. > Could not resolve all files for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.2. Required by: project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.0.2 -- gralde sync Gradle sync failed: No matching variant of org.springframework.boo..

skill/Etc 2023.01.30

mac host 변경 및 확인

1. 터미널 실행 (터미널 위치 : Launchpad > 기타 > 터미널) $ sudo nano /private/etc/hosts 127.0.0.1 localhost # 도메인이 localhost로 들어오면 127.0.0.1 서버로 접속 함. (수정 후) ctrl+o(저장), ctrl+x(나가기) $ dscacheutil -flushcache -- 캐시갱신 2. 확인 $ ping localhost PING localhost (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.044 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.086 ms

skill/Etc 2020.09.11