rhymix/modules/comment/queries/getCommentParentNextSibling.xml
Kijin Sung 23d074b486 Optimize query getCommentParentNextSibling
검색 조건에 document_srl을 넣지 않아서 인덱스를 타지 않는 문제 수정
(복합 인덱스의 첫 번째 컬럼이 검색 조건에 포함되어 있지 않으면 인덱스가 없는 것과 마찬가지임)
2018-02-02 16:09:14 +09:00

14 lines
680 B
XML

<query id="getCommentParentNextSibling" action="select">
<tables>
<table name="comments_list" />
</tables>
<columns>
<column name="min(arrange)" alias="arrange" />
</columns>
<conditions>
<condition operation="equal" column="document_srl" var="document_srl" filter="number" />
<condition operation="equal" column="head" var="head" filter="number" notnull="notnull" pipe="and" />
<condition operation="excess" column="arrange" var="arrange" filter="number" notnull="notnull" pipe="and" />
<condition operation="less" column="depth" var="depth" filter="number" notnull="notnull" pipe="and" />
</conditions>
</query>