You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
페이징으로 인해 일대다 관계는 fetch X
-> 한 요청 당 4개의 query가 요청됨. main / topic -> topickeyword / topickeyword -> keyword / topic -> choice)
# 1SELECT t1_0.*,
a1_0.*FROM topic t1_0
JOIN member a1_0
ONa1_0.id=t1_0.author_idJOIN topic_keyword t2_0
ONt1_0.id=t2_0.topic_idWHEREt1_0.status=?
AND NOT EXISTS(SELECT1FROM hidden_topic h1_0
WHEREh1_0.topic_id=t1_0.idANDh1_0.member_id=? )
ORDER BY t1_0.vote_countDESCLIMIT ?, ?
SELECT t1_0.*,
a1_0.*FROM topic t1_0
JOIN member a1_0
ONa1_0.id=t1_0.author_idJOIN keyword k
ONt1_0.id=k.topic_idWHEREt1_0.status=?
ANDk.keAND NOT EXISTS(SELECT1FROM hidden_topic h1_0
WHEREh1_0.topic_id=t1_0.idANDh1_0.member_id=? )
ORDER BY t1_0.vote_countDESCLIMIT ?, ?
페이징으로 인해 일대다 관계는 fetch X
-> 한 요청 당 4개의 query가 요청됨.
main
/topic -> topickeyword
/topickeyword -> keyword
/topic -> choice
)lazy_loading -> batch 요청
!!! query를
topic_keyword
를 기반으로 시작해도 main + 3 = 4번의 쿼리 나감The text was updated successfully, but these errors were encountered: