본문 바로가기 메뉴 바로가기

Hello, Python

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Hello, Python

검색하기 폼
  • 분류 전체보기 (146)
    • Python (87)
      • tkinter (12)
    • Java (6)
      • Spring (1)
      • JPA (3)
    • MySQL (2)
    • Linux (19)
    • Virtualization (1)
    • Infra (1)
    • Network (1)
    • VBA(Excel) (19)
    • Apache (3)
    • html (1)
    • Windows (2)
    • 일상다반사 (2)
  • 방명록

onetomany (1)
JPA, OneToMany, FetchType, fetch join+distinct

- Entity의 OneToMany의 FetchType에 대해 어떤식으로 처리되는지 정리 - JPQL을 사용했을때 발생하는 N + 1 문제를 fetch join + distinct로 해결 1. 준비 1.1 DDL & Records create table `member` ( member_id bigint auto_increment primary key, team_id bigint null, name varchar(255) null ); create table `team` ( team_id bigint auto_increment primary key, name varchar(255) null ); # member member_id,team_id,name 1,1,m1 2,1,m2 3,1,m3 4,2,m4 5,..

Java 2021. 12. 2. 18:16
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • checkbutton
  • activeforeground
  • 리눅스
  • IdClass
  • command
  • apache
  • fetch join
  • tkinter
  • onetomany
  • Private
  • 폼
  • 상수
  • JPA
  • FetchType
  • Python
  • Module
  • Java
  • ManyToOne
  • borderwidth
  • Excel
  • highlightthickness
  • activebackground
  • highlightbackground
  • vba
  • 파이썬
  • Linux
  • indicatoron
  • tkinter command & bind [명령어묶기와 사건묶기] Python
  • Composite Key
  • disabledforeground
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바