- generic [ref=f121e3]: - link "본문으로 건너뛰기" [ref=f121e4] [cursor=pointer]: - /url: "#main-content" - banner [ref=f121e5]: - generic [ref=f121e6]: - link "TechLog Studio" [ref=f121e7] [cursor=pointer]: - /url: /studio - text: TechLog - generic [ref=f121e8]: Studio - navigation "Studio 주 탐색" [ref=f121e10]: - link "작업본" [ref=f121e11] [cursor=pointer]: - /url: /studio/documents - link "게시 기록" [ref=f121e12] [cursor=pointer]: - /url: /studio/publications - link "새 문서" [ref=f121e13] [cursor=pointer]: - /url: /studio/documents/new - link "주제·프로젝트" [ref=f121e14] [cursor=pointer]: - /url: /studio/taxonomy - link "릴리즈" [ref=f121e15] [cursor=pointer]: - /url: /studio/releases - link "공개 사이트 보기" [ref=f121e16] [cursor=pointer]: - /url: / - button "로그아웃" [ref=f121e17] - main [ref=f121e18]: - generic [ref=f121e19]: - generic [ref=f121e20]: - region [ref=f121e21]: - generic [ref=f121e22]: - paragraph [ref=f121e23]: REFERENCE · VERSION 4 - heading "문서 편집" [level=1] [ref=f121e24] - paragraph [ref=f121e25]: Feed Visibility Query Pattern - region [ref=f121e26]: - generic [ref=f121e27]: - paragraph [ref=f121e28]: DOCUMENT - heading "기본 정보" [level=2] [ref=f121e29] - generic [ref=f121e30]: - generic [ref=f121e31]: - generic [ref=f121e32]: 제목 - textbox "제목" [ref=f121e33]: Feed Visibility Query Pattern - generic [ref=f121e34]: - generic [ref=f121e35]: slug - textbox "slug" [ref=f121e36]: - /placeholder: 비우면 제목에서 만듭니다 (영문 소문자·숫자·하이픈) - text: feed-visibility-query-pattern - generic [ref=f121e37]: - generic [ref=f121e38]: 요약 - textbox "요약" [ref=f121e39]: 조회 사용자에 따라 보이는 항목이 갈리는 피드는 공개, 멘션, 비공개 세 분기를 만든다. 하나의 OR로 묶는 방식, 분기를 UNION으로 나누는 방식, 사용자별로 미리 계산하는 방식이 같은 결과를 다른 비용으로 만든다. - generic [ref=f121e40]: 목록 카드에는 약 90자까지 보입니다 · 122 / 2000 - generic [ref=f121e41]: - generic [ref=f121e42]: Topic - combobox "Topic" [ref=f121e43]: - option "선택하지 않음" - option "JPA 피드 조회 성능" [selected] - option "OAuth/OIDC 인증 경계" - generic [ref=f121e44]: - generic [ref=f121e45]: Project - combobox "Project" [ref=f121e46]: - option "미지정" - option "Backend Clean Architecture" - option "KeyCloak Patterns" - option "Liner N + 1문제" [selected] - status [ref=f121e47] - group "관계" [ref=f121e48]: - generic [ref=f121e50]: - generic [ref=f121e51]: - generic [ref=f121e52]: 관계 1 대상 - combobox "관계 1 대상" [ref=f121e53]: - option "대상 선택" - option - option - option - option - option - option - option "실제 동시 트래픽에서도 이 구조가 안정적인가" - option "서버 세션 기반 인증 구조는 다중 인스턴스에서 어떻게 운영할 것인가" - option "ANALYZE 이후 Cardinality Estimate는 어떻게 달라지는가" - option "Authorization Code Flow의 Endpoint와 Credential 이동 기준" - option "Authorization Code와 PKCE가 보호하는 구간" - option "Bearer JWT가 인증된 principal이 되기까지" - option "BFF 인증 구조 설계 기준" - option "BFF가 OAuth Token을 관리하는 조건" - option "BFF의 Session과 OAuth2AuthorizedClient를 어디에 저장할 것인가" - option "Browser Token을 없애면서 BFF에 Session과 CSRF 책임이 생긴 과정" - option "Collection Fetch Join Pagination의 In-memory Paging" - option "Cookie로 인증하는 요청에서 CSRF token이 하는 일" - option "브라우저가 credential을 보관하는 위치와 그 성질" - option "DTO 변환 과정에서 발생한 Highlight 컬렉션 N+1" - option "필드 접근 없이 발생한 EAGER ToOne N+1" - option "Feed Visibility Query Pattern" - option "feed_visible을 Production CQRS로 승격할 것인가" [disabled] - option "Fetch Join · Batch · Projection 선택 기준" - option "Fetch Join으로 N+1을 해결하다 만난 MultiBag과 행 폭증" - option "Fetch Type과 Fetch Strategy 구분" - option "Forward-Auth 구조에서 Application Authorization을 어디까지 Edge에 둘 것인가" - option "Forward-Auth에서 Client가 보낸 Identity Header를 신뢰하면 안 되는 이유" - option "Forward-Auth에서 Identity Header를 신뢰하기 위한 조건" - option "Forward-Auth와 Nginx auth_request의 동작" - option "Highlight 없는 FeedItem을 허용할 것인가" - option "외부 IdP와의 연동이라도 별도의 인증 방식이 아니다." - option "외부 IdP 연동과 Application 인증 구조의 경계" - option "외부 IdP Brokering의 동작" - option "JPA N+1 정량 진단 기준" - option "Keyset Pagination 설계 기준" [disabled] - option "OAuth/OIDC 인증 패턴 선택 기준" - option "OAuth Token과 Application Session을 구분하는 기준" - option "PostgreSQL Query Plan 측정 기준" - option "Projection 이후에도 1,509행을 읽은 Row Over-fetch" - option "Public Client와 Confidential Client 구분 기준" - option "Query Plan은 실제 PostgreSQL에서 측정한다" - option "Refresh Token 관리만 서버로 이전, Access Token은 여전히 Browser에 노출" - option "Refresh Token Rotation과 다중 Replica 경쟁을 어떻게 처리할 것인가" - option "Round Trip과 Row Volume을 독립 측정할 것인가" - option "SPA에서 토큰을 직접 관리하면서 드러난 Browser Credential 경계" - option "Top-N-per-group 선택 기준" - option "Visibility OR이 Keyset Index를 깨뜨린 문제" [selected] - generic [ref=f121e54]: - generic [ref=f121e55]: 관계 1 이유 - textbox "관계 1 이유" [ref=f121e56]: 단일 OR이 정렬 인덱스를 못 쓰는 것을 확인한 기록이다. - generic [ref=f121e57]: - button "위로" [disabled] [ref=f121e58] - button "아래로" [ref=f121e59] - button "삭제" [ref=f121e60] - generic [ref=f121e61]: - generic [ref=f121e62]: - generic [ref=f121e63]: 관계 2 대상 - combobox "관계 2 대상" [ref=f121e64]: - option "대상 선택" - option - option - option - option - option - option - option "실제 동시 트래픽에서도 이 구조가 안정적인가" - option "서버 세션 기반 인증 구조는 다중 인스턴스에서 어떻게 운영할 것인가" - option "ANALYZE 이후 Cardinality Estimate는 어떻게 달라지는가" - option "Authorization Code Flow의 Endpoint와 Credential 이동 기준" - option "Authorization Code와 PKCE가 보호하는 구간" - option "Bearer JWT가 인증된 principal이 되기까지" - option "BFF 인증 구조 설계 기준" - option "BFF가 OAuth Token을 관리하는 조건" - option "BFF의 Session과 OAuth2AuthorizedClient를 어디에 저장할 것인가" - option "Browser Token을 없애면서 BFF에 Session과 CSRF 책임이 생긴 과정" - option "Collection Fetch Join Pagination의 In-memory Paging" - option "Cookie로 인증하는 요청에서 CSRF token이 하는 일" - option "브라우저가 credential을 보관하는 위치와 그 성질" - option "DTO 변환 과정에서 발생한 Highlight 컬렉션 N+1" - option "필드 접근 없이 발생한 EAGER ToOne N+1" - option "Feed Visibility Query Pattern" - option "feed_visible을 Production CQRS로 승격할 것인가" [selected] - option "Fetch Join · Batch · Projection 선택 기준" - option "Fetch Join으로 N+1을 해결하다 만난 MultiBag과 행 폭증" - option "Fetch Type과 Fetch Strategy 구분" - option "Forward-Auth 구조에서 Application Authorization을 어디까지 Edge에 둘 것인가" - option "Forward-Auth에서 Client가 보낸 Identity Header를 신뢰하면 안 되는 이유" - option "Forward-Auth에서 Identity Header를 신뢰하기 위한 조건" - option "Forward-Auth와 Nginx auth_request의 동작" - option "Highlight 없는 FeedItem을 허용할 것인가" - option "외부 IdP와의 연동이라도 별도의 인증 방식이 아니다." - option "외부 IdP 연동과 Application 인증 구조의 경계" - option "외부 IdP Brokering의 동작" - option "JPA N+1 정량 진단 기준" - option "Keyset Pagination 설계 기준" [disabled] - option "OAuth/OIDC 인증 패턴 선택 기준" - option "OAuth Token과 Application Session을 구분하는 기준" - option "PostgreSQL Query Plan 측정 기준" - option "Projection 이후에도 1,509행을 읽은 Row Over-fetch" - option "Public Client와 Confidential Client 구분 기준" - option "Query Plan은 실제 PostgreSQL에서 측정한다" - option "Refresh Token 관리만 서버로 이전, Access Token은 여전히 Browser에 노출" - option "Refresh Token Rotation과 다중 Replica 경쟁을 어떻게 처리할 것인가" - option "Round Trip과 Row Volume을 독립 측정할 것인가" - option "SPA에서 토큰을 직접 관리하면서 드러난 Browser Credential 경계" - option "Top-N-per-group 선택 기준" - option "Visibility OR이 Keyset Index를 깨뜨린 문제" [disabled] - generic [ref=f121e65]: - generic [ref=f121e66]: 관계 2 이유 - textbox "관계 2 이유" [ref=f121e67]: 사전계산 방식이 남긴 판단이다. - generic [ref=f121e68]: - button "위로" [ref=f121e69] - button "아래로" [ref=f121e70] - button "삭제" [ref=f121e71] - generic [ref=f121e72]: - generic [ref=f121e73]: - generic [ref=f121e74]: 관계 3 대상 - combobox "관계 3 대상" [ref=f121e75]: - option "대상 선택" - option - option - option - option - option - option - option "실제 동시 트래픽에서도 이 구조가 안정적인가" - option "서버 세션 기반 인증 구조는 다중 인스턴스에서 어떻게 운영할 것인가" - option "ANALYZE 이후 Cardinality Estimate는 어떻게 달라지는가" - option "Authorization Code Flow의 Endpoint와 Credential 이동 기준" - option "Authorization Code와 PKCE가 보호하는 구간" - option "Bearer JWT가 인증된 principal이 되기까지" - option "BFF 인증 구조 설계 기준" - option "BFF가 OAuth Token을 관리하는 조건" - option "BFF의 Session과 OAuth2AuthorizedClient를 어디에 저장할 것인가" - option "Browser Token을 없애면서 BFF에 Session과 CSRF 책임이 생긴 과정" - option "Collection Fetch Join Pagination의 In-memory Paging" - option "Cookie로 인증하는 요청에서 CSRF token이 하는 일" - option "브라우저가 credential을 보관하는 위치와 그 성질" - option "DTO 변환 과정에서 발생한 Highlight 컬렉션 N+1" - option "필드 접근 없이 발생한 EAGER ToOne N+1" - option "Feed Visibility Query Pattern" - option "feed_visible을 Production CQRS로 승격할 것인가" [disabled] - option "Fetch Join · Batch · Projection 선택 기준" - option "Fetch Join으로 N+1을 해결하다 만난 MultiBag과 행 폭증" - option "Fetch Type과 Fetch Strategy 구분" - option "Forward-Auth 구조에서 Application Authorization을 어디까지 Edge에 둘 것인가" - option "Forward-Auth에서 Client가 보낸 Identity Header를 신뢰하면 안 되는 이유" - option "Forward-Auth에서 Identity Header를 신뢰하기 위한 조건" - option "Forward-Auth와 Nginx auth_request의 동작" - option "Highlight 없는 FeedItem을 허용할 것인가" - option "외부 IdP와의 연동이라도 별도의 인증 방식이 아니다." - option "외부 IdP 연동과 Application 인증 구조의 경계" - option "외부 IdP Brokering의 동작" - option "JPA N+1 정량 진단 기준" - option "Keyset Pagination 설계 기준" [selected] - option "OAuth/OIDC 인증 패턴 선택 기준" - option "OAuth Token과 Application Session을 구분하는 기준" - option "PostgreSQL Query Plan 측정 기준" - option "Projection 이후에도 1,509행을 읽은 Row Over-fetch" - option "Public Client와 Confidential Client 구분 기준" - option "Query Plan은 실제 PostgreSQL에서 측정한다" - option "Refresh Token 관리만 서버로 이전, Access Token은 여전히 Browser에 노출" - option "Refresh Token Rotation과 다중 Replica 경쟁을 어떻게 처리할 것인가" - option "Round Trip과 Row Volume을 독립 측정할 것인가" - option "SPA에서 토큰을 직접 관리하면서 드러난 Browser Credential 경계" - option "Top-N-per-group 선택 기준" - option "Visibility OR이 Keyset Index를 깨뜨린 문제" [disabled] - generic [ref=f121e76]: - generic [ref=f121e77]: 관계 3 이유 - textbox "관계 3 이유" [ref=f121e78]: 이 조건과 함께 서야 하는 페이징 기준이다. - generic [ref=f121e79]: - button "위로" [ref=f121e80] - button "아래로" [disabled] [ref=f121e81] - button "삭제" [ref=f121e82] - button "관계 추가" [ref=f121e83] - region [ref=f121e84]: - generic [ref=f121e85]: - paragraph [ref=f121e86]: REFERENCE - heading "재사용할 기준" [level=2] [ref=f121e87] - generic [ref=f121e88]: - generic [ref=f121e89]: 이 기준을 쓰는 이유 - textbox "이 기준을 쓰는 이유" [ref=f121e90] - group "판단 기준" [ref=f121e91]: - generic [ref=f121e93]: - generic [ref=f121e94]: - generic [ref=f121e95]: 판단 기준 1 제목 - textbox "판단 기준 1 제목" [ref=f121e96] - generic [ref=f121e97]: - generic [ref=f121e98]: 판단 기준 1 본문 - textbox "판단 기준 1 본문" [ref=f121e99] - generic [ref=f121e100]: - button "위로" [disabled] [ref=f121e101] - button "아래로" [disabled] [ref=f121e102] - button "삭제" [ref=f121e103] - button "판단 기준 추가" [active] [ref=f121e104] - group "적용할 때" [ref=f121e105]: - paragraph [ref=f121e107]: 아직 입력한 항목이 없습니다. - button "적용할 때 추가" [ref=f121e108] - group "예외와 주의" [ref=f121e109]: - paragraph [ref=f121e111]: 아직 입력한 항목이 없습니다. - button "예외와 주의 추가" [ref=f121e112] - group "예시" [ref=f121e113]: - generic [ref=f121e115]: - generic [ref=f121e116]: - generic [ref=f121e117]: 예시 1 - textbox "예시 1" [ref=f121e118]: "단일 OR : 분기별 스캔을 bitmap으로 합침, 정렬 재수행, 관계 조건은 hashed SubPlan" - generic [ref=f121e119]: - button "위로" [disabled] [ref=f121e120] - button "아래로" [ref=f121e121] - button "삭제" [ref=f121e122] - generic [ref=f121e123]: - generic [ref=f121e124]: - generic [ref=f121e125]: 예시 2 - textbox "예시 2" [ref=f121e126]: "UNION 분해 : 분기별 정렬 스트림을 병합, 전체 재정렬 없음, 관계 조건은 조인" - generic [ref=f121e127]: - button "위로" [ref=f121e128] - button "아래로" [ref=f121e129] - button "삭제" [ref=f121e130] - generic [ref=f121e131]: - generic [ref=f121e132]: - generic [ref=f121e133]: 예시 3 - textbox "예시 3" [ref=f121e134]: "사전계산 : 커버링 인덱스 하나, OR·조인·정렬 없음" - generic [ref=f121e135]: - button "위로" [ref=f121e136] - button "아래로" [ref=f121e137] - button "삭제" [ref=f121e138] - generic [ref=f121e139]: - generic [ref=f121e140]: - generic [ref=f121e141]: 예시 4 - textbox "예시 4" [ref=f121e142]: "갱신 비용 : 사전계산만 있음" - generic [ref=f121e143]: - button "위로" [ref=f121e144] - button "아래로" [ref=f121e145] - button "삭제" [ref=f121e146] - generic [ref=f121e147]: - generic [ref=f121e148]: - generic [ref=f121e149]: 예시 5 - textbox "예시 5" [ref=f121e150]: "저장 공간 : 사전계산은 조회 사용자 수에 비례" - generic [ref=f121e151]: - button "위로" [ref=f121e152] - button "아래로" [disabled] [ref=f121e153] - button "삭제" [ref=f121e154] - button "예시 추가" [ref=f121e155] - generic [ref=f121e156]: - generic [ref=f121e157]: 마지막 검증일 - textbox "마지막 검증일" [ref=f121e158] - region [ref=f121e159]: - generic [ref=f121e160]: - paragraph [ref=f121e161]: LIVE - heading "즉시 미리보기" [level=2] [ref=f121e162] - generic [ref=f121e165]: - generic [ref=f121e166]: - navigation "문서 경로" [ref=f121e167]: - link "Reference" [ref=f121e168] [cursor=pointer]: - /url: /explore/references - generic [ref=f121e169]: / - generic [ref=f121e170]: JPA 피드 조회 성능 - generic [ref=f121e171]: / - generic [ref=f121e172]: Liner N + 1문제 - heading "Feed Visibility Query Pattern" [level=1] [ref=f121e173] - paragraph [ref=f121e174]: 조회 사용자에 따라 보이는 항목이 갈리는 피드는 공개, 멘션, 비공개 세 분기를 만든다. 하나의 OR로 묶는 방식, 분기를 UNION으로 나누는 방식, 사용자별로 미리 계산하는 방식이 같은 결과를 다른 비용으로 만든다. - generic [ref=f121e175]: - generic [ref=f121e176]: - term [ref=f121e177]: 유형 - definition [ref=f121e178]: Reference - generic [ref=f121e179]: - term [ref=f121e180]: 프로젝트 - definition [ref=f121e181]: Liner N + 1문제 - generic [ref=f121e182]: - term [ref=f121e183]: 게시 - definition [ref=f121e184]: 게시 전 - region [ref=f121e185]: - paragraph [ref=f121e186]: Purpose - heading "이 기준을 쓰는 이유" [level=2] [ref=f121e187] - article [ref=f121e188]: - region [ref=f121e189]: - heading "판단 기준" [level=2] [ref=f121e190] - list [ref=f121e191]: - listitem [ref=f121e192]: - generic [ref=f121e193]: "01" - generic [ref=f121e194]: - heading [level=3] - region [ref=f121e195]: - heading "적용할 때" [level=2] [ref=f121e196] - list - region [ref=f121e197]: - heading "예외와 주의" [level=2] [ref=f121e198] - list - region [ref=f121e199]: - heading "예시" [level=2] [ref=f121e200] - list [ref=f121e201]: - listitem [ref=f121e202]: - paragraph [ref=f121e203]: "단일 OR : 분기별 스캔을 bitmap으로 합침, 정렬 재수행, 관계 조건은 hashed SubPlan" - listitem [ref=f121e204]: - paragraph [ref=f121e205]: "UNION 분해 : 분기별 정렬 스트림을 병합, 전체 재정렬 없음, 관계 조건은 조인" - listitem [ref=f121e206]: - paragraph [ref=f121e207]: "사전계산 : 커버링 인덱스 하나, OR·조인·정렬 없음" - listitem [ref=f121e208]: - paragraph [ref=f121e209]: "갱신 비용 : 사전계산만 있음" - listitem [ref=f121e210]: - paragraph [ref=f121e211]: "저장 공간 : 사전계산은 조회 사용자 수에 비례" - paragraph [ref=f121e212]: 마지막 검증 - complementary [ref=f121e213]: - heading "작업 상태" [level=2] [ref=f121e214] - status "편집 상태" [ref=f121e215]: 저장되지 않음 - generic [ref=f121e216]: - generic [ref=f121e217]: - term [ref=f121e218]: 저장 버전 - definition [ref=f121e219]: "4" - generic [ref=f121e220]: - term [ref=f121e221]: 종류 - definition [ref=f121e222]: Reference - paragraph [ref=f121e223]: 불완전한 초안도 저장할 수 있습니다. Ctrl+S 로도 저장합니다. 게시를 누르면 채워야 할 칸을 그 자리에 표시합니다. - generic [ref=f121e224]: - button "저장" [ref=f121e225] - button "게시" [ref=f121e226] - paragraph [ref=f121e227]