[mysql] 계층형게시판 알고리즘 (정리중)

cateto·2021년 1월 3일
0
  1. 인접행렬모델,
  2. 중복집합모델
    (https://wooriworld2006.tistory.com/417)
  3. 인접행렬모델 + 재귀쿼리사용
    (https://www.mysqltutorial.org/mysql-adjacency-list-tree/)

지금 현 상태는 "관계형 데이터베이스 모델"이기 때문에 주어진 상황에서 root객체(원글)와 child node(답글) 객체를 따로따로 다룸..

만약에 oracle이었으면 계층형 쿼리(Hierarchical Query)로 접근 가능하기 때문에 훨씬 수월하지 않았을까 싶다 ㅠㅠ
(참고 : https://blog.naver.com/javaking75/220010288704)

profile
Curious for Everything

0개의 댓글