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.

유닉스 타임스탬프 (Unix Timestamp)

유닉스 타임스탬프란?1970년 1월 1일 00:00:00 UTC부터 경과한 초전 세계 공통임 (시간대에 영향을 받지 않음) 타임스탬프 값 구하기Java// 초 (10자리)Instant.now().getEpochSecond()System.currentTimeMillis() / 1000// 밀리초 (13자리)Instant.now().toEpochMilli()System.currentTimeMillis()

  • format_list_bulleted CS/OS
  • · 2025. 8. 3.

APNs를 이용한 iOS Push Server

iOS 앱 Push 종류생성 방식서버에서 Push 생성서버에서 생성하여 APNs(Apple Push Notification Service)를 통해 사용자 기기로 전달앱을 사용하지 않을 때도 Push 수신 가능수신 조건 지정 가능앱 내에서 직접 알림 생성알림을 보내기 전 일정한 조건을 지정 Notification 형식alertsoundbadgesilent : 사용자에게 표시되지 않고 기기에만 전달 APNs (Apple Push Notification Service)역할사용자 디바이스에 대한 accredited(공인된), encrypted(암호화된), persistent(지속적인) IP 연결 관리오프라인 기기에 대한 Notification 저장 가능다시 온라인 상태가 되면 저장된 Notification 전달..

  • format_list_bulleted Service/Push
  • · 2025. 3. 19.

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.

Systemd로 service 실행/배포하기

1. Systemd 란Systemd시스템 부팅 후 가장 먼저 실행되는 데몬(d)더보기@ 데몬 (daemon)💡 데몬 (daemon)background에서 실행되는 프로세스리소스를 unit 단위로 관리unit type : .service, .socket, .device, .mount, .automount, .swap, .target, .path, .timer 등 project.service서버에서의 애플리케이션 관리에 대한 명세를 작성/etc/systemd/system에 위치시스템은 일반적으로 unit file을 /lib/systemd/system 하위에 복사하여 유지 2. service 등록 및 실행1) project.service 파일 생성/etc/systemd/system/에 생성gpt가 작성해준 ..

  • format_list_bulleted Infra/Deploy
  • · 2025. 2. 23.

EC2 환경에서 Spring 프로젝트에 환경변수 적용하기

1. 쉘 스크립트(start.sh)를 이용한 배포.env 에 설정한 값이 application.yml과 매핑됨 1. .env에 환경 변수 저장export DB_URL="mysql://user:password@host:port/db_a"export SECRET_KEY="secret_key" 2. 프로젝트 실행할 때 로드되도록 start.sh에 스트립트 작성source /home/ubuntu/.env 3. echo로 적용된 환경변수 확인echo $DB_URL 4. 소스코드에서 환경변수 사용application.ymlspring: datasource: url: ${DB_URL}jwt: secret-key: ${SECRET_KEY}JwtUtil.java : @ConfigurationProperties ..

  • format_list_bulleted Infra/Deploy
  • · 2025. 2. 23.
  • navigate_before
  • 1
  • 2
  • 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.

티스토리툴바