Files
document-haness/docs/n+1liner/final/assets/diagrams/nplus1-query-fanout/nplus1-query-fanout.d2
T

15 lines
458 B
Plaintext

# 반환 부모 수 N이 컬렉션 초기화와 자식 SELECT 횟수를 결정한다
# Question: 왜 한 번의 피드 요청에서 반환한 FeedItem 수 N이 Highlight 추가 조회 N회로 이어지는가?
direction: right
n0: "loadFeed(0, N) → FeedItem N개" {
shape: rectangle
}
n1: "Highlight 컬렉션 초기화 N회" {
shape: rectangle
}
n2: "Highlight SELECT N회" {
shape: rectangle
}
n0 -> n1: "컬렉션 접근"
n1 -> n2: "SELECT 실행"