Uncategorized

Uncategorized

NestJS + MikroORM populate

populate를 제대로 모르면 N+1이 돌아온다 MikroORM에서 관계 데이터를 로딩하는 핵심 메커니즘은 populate입니다. TypeORM의 relations 옵션과 비슷하지만, MikroORM은 두 가지 LoadStrategy(SELECT_IN, […]

Uncategorized

MySQL Slow Query Log 운영: 설정

들어가며: 슬로우 쿼리를 “나중에 보겠다”고 미루면 생기는 일 MySQL 운영에서 성능 문제는 대부분 소수의 느린 쿼리가 원인이다. 그런데 Slow Query

Uncategorized

NestJS + MikroORM 쿼리 빌더 활용

왜 EntityRepository를 제대로 알아야 하는가 NestJS + MikroORM 프로젝트에서 EntityRepository는 데이터 접근의 진입점입니다. 그러나 TypeORM의 Repository와 달리 MikroORM은 Unit of

Uncategorized

Kubernetes RBAC

들어가며: kubectl이 되는데, 왜 Pod에서는 API 호출이 거부될까? Kubernetes 클러스터에서 kubectl get pods는 잘 되는데, Pod 안에서 실행한 애플리케이션이 Kubernetes

Uncategorized

NestJS Interceptor: Logging

들어가며: Interceptor가 NestJS 미들웨어와 다른 점 NestJS에서 요청/응답을 가로채는 방법은 Middleware, Guard, Interceptor, Pipe, Exception Filter 다섯 가지다. 이 중

Uncategorized

NestJS + TypeORM 엔티티 관계 설계

왜 Subscriber와 Entity Listener를 알아야 하는가 NestJS + TypeORM 프로젝트에서 “엔티티가 저장/수정/삭제될 때 부가 로직을 실행”해야 하는 상황은 반복됩니다. 감사

위로 스크롤
WordPress Appliance - Powered by TurnKey Linux