n-plus-one-prevention
✓루프에서 관련 데이터를 가져올 때 사용합니다. 하나의 요청에 대해 여러 쿼리를 볼 때 사용합니다. 목록 끝점에서 데이터베이스가 느린 경우에 사용합니다.
SKILL.md
Never query in a loop. Fetch related data in a single query.
N+1 is when you fetch N items, then make N more queries to get related data. It's the most common database performance killer.
"It's Only a Few Items" Pressure: "We only have 10 orders"
루프에서 관련 데이터를 가져올 때 사용합니다. 하나의 요청에 대해 여러 쿼리를 볼 때 사용합니다. 목록 끝점에서 데이터베이스가 느린 경우에 사용합니다. 출처: yanko-belov/code-craft.
인용 가능한 정보
AI/검색 인용용 안정적인 필드와 명령어.
- 설치 명령어
npx skills add https://github.com/yanko-belov/code-craft --skill n-plus-one-prevention- 카테고리
- {}데이터 분석
- 인증됨
- ✓
- 최초 등록
- 2026-02-01
- 업데이트
- 2026-02-18
빠른 답변
n-plus-one-prevention이란?
루프에서 관련 데이터를 가져올 때 사용합니다. 하나의 요청에 대해 여러 쿼리를 볼 때 사용합니다. 목록 끝점에서 데이터베이스가 느린 경우에 사용합니다. 출처: yanko-belov/code-craft.
n-plus-one-prevention 설치 방법은?
터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/yanko-belov/code-craft --skill n-plus-one-prevention 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code나 Cursor에서 사용할 수 있습니다
소스 저장소는 어디인가요?
https://github.com/yanko-belov/code-craft
상세
- 카테고리
- {}데이터 분석
- 출처
- skills.sh
- 최초 등록
- 2026-02-01