zeom blog
close
프로필 사진

zeom blog

github: @denev6

  • 분류 전체보기 (12)
    • Framework & Library (5)
      • Spring & SpringBoot (4)
      • MyBatis (0)
      • JPA (1)
    • DB (2)
      • Oracle (0)
      • H2 (0)
      • MySQL (2)
    • Infra (3)
      • APM & Monitoring (0)
      • Deploy (2)
      • Cloud (1)
      • Automation (0)
    • Service (1)
      • Push (1)
    • CS (1)
      • OS (1)
  • 홈
  • 태그
  • 방명록

MySQL Order By - Filesort

1. FilesortMySQL은 ORDER BY가 적용된 Select Query를 수행할 때 내부적으로 데이터 정렬을 수행함데이터 사이즈가 작은 경우 : 메모리 영역에서 수행사이즈가 큰 경우 : Disk와 File의 도움을 받음filesort가 필요한 쿼리의 경우, explain으로 실행 계획을 확인했을 때 “Extra : Using filesort”가 출력됨Index가 적용된 컬럼 기준으로 정렬을 수행하면, Filesort가 발생하지 않음디스크에서 데이터의 레코드 혹은 페이지를 조회하는 단계에서 이미 정렬된 데이터를 가져오기 때문 2. Sort BufferSort Buffer : MySQL이 정렬을 수행하기 위해 할당 받아 사용하는 별도의 메모리 공간하나의 Session Thread가 생성되면, 내부적..

  • format_list_bulleted DB/MySQL
  • · 2025. 8. 10.

Implicit Join vs. Explicit Join

Implicit JoinSELECT *FROM tableA , tableBWHERE tableA.col = tableB.colfrom 절에는 table을 나열, where 절에 join condition을 작성Inner Join만 가능최근에는 잘 사용하지 않음 Explicit JoinSELECT * FROM tableAJOIN tableB ON tableA.col = tableB.colfrom 절에 명시적으로 Join 키워드를 이용하여 join table을 명시참고자료[DB] SQL JOIN의 모든 것: Implicit VS Explicit, Inner VS Outer, Equi, Natural, Cross Join과 예시까지!

  • format_list_bulleted DB/MySQL
  • · 2025. 3. 17.
  • navigate_before
  • 1
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (12)
    • Framework & Library (5)
      • Spring & SpringBoot (4)
      • MyBatis (0)
      • JPA (1)
    • DB (2)
      • Oracle (0)
      • H2 (0)
      • MySQL (2)
    • Infra (3)
      • APM & Monitoring (0)
      • Deploy (2)
      • Cloud (1)
      • Automation (0)
    • Service (1)
      • Push (1)
    • CS (1)
      • OS (1)
인기 글
전체 방문자
오늘
어제
Copyright © zeom 모든 권리 보유.
SKIN: Copyright © 쭈미로운 생활 All rights reserved. Designed by JJuum.
and Current skin "dev-roo" is modified by Jin.

티스토리툴바