Skip to content

[FEAT] 영속 참조 기반 그래프 조회 저장소 구현 - #210

Merged
poketopa merged 1 commit into
developfrom
feat/208
Aug 31, 2026
Merged

poketopa merged 1 commit into
developfrom
feat/208

Conversation

@jyt6640

@jyt6640 jyt6640 commented Aug 31, 2026

Copy link
Copy Markdown
Member

관련 이슈

Closes #208

변경 배경

그래프 읽기 경로에서 문서 본문 전송과 요청 시점 참조 파싱을 제거하려면, node metadata와 영속 reference만 조회하는 repository 계약이 필요합니다.

변경 내용

  • CrewGraphNodeReadModel(UUID documentUuid, String title)과 UUID/title 전용 graph node query 추가
  • DocumentReferenceReadModel(UUID sourceDocumentUuid, UUID targetDocumentUuid)와 동일 generation reference query 추가
  • source·target의 generation membership 및 target CREW discriminator 제한
  • node title, reference source/target UUID 안정 정렬
  • 기존 CrewGraphReadModel·기존 organization query·service 호환 유지
  • generation membership, 방향성, 타 generation·organization·미연결 target 제외 repository tests 추가

검증

  • H2 CrewGraphQueryRepositoryTest, DocumentReferenceRepositoryTest
  • H2 Java 전체 테스트
  • MySQL 8.0.41 빈 schema repository 테스트 13개
  • MySQL 8.0.41 benchmark 10,002 documents / 10,000 links / 5,000 references EXPLAIN ANALYZE
  • 생성 SQL select list에서 node contents 미조회 확인
  • CI Java 17 전체 테스트

로컬에는 JDK 17이 설치되어 있지 않아 위 로컬 전체 테스트는 Temurin 21로 실행했으며, CI는 workflow 설정에 따라 JDK 17을 사용합니다.

영향 및 참고사항

  • API/service 전환은 후속 Issue 07 범위입니다.
  • 기존 contents projection은 호환성을 위해 유지합니다.
  • schema/index 및 dependency 변경은 없습니다.
  • 실행계획에서는 현재 link index 구조상 node query가 document scan과 title sort를 수행하므로, 후속 index 튜닝 검토가 필요합니다.

@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 5fed771c-63b1-4a24-b16e-33127f84ab89

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@poketopa
poketopa merged commit c4491d2 into develop Aug 31, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants