Add user-configurable index hints to getComment/DocumentListByMemberSrl

This commit is contained in:
Kijin Sung 2021-01-15 00:40:39 +09:00
parent 91a934b7bf
commit 68ecf64a6b
2 changed files with 9 additions and 3 deletions

View file

@ -1,7 +1,10 @@
<query id="getCommentList" action="select"> <query id="getCommentListByMemberSrl" action="select">
<tables> <tables>
<table name="comments" /> <table name="comments" />
</tables> </tables>
<index_hint for="ALL">
<index var="index_hint" default="idx_member_srl" type="USE" />
</index_hint>
<columns> <columns>
<column name="comment_srl" /> <column name="comment_srl" />
<column name="parent_srl" /> <column name="parent_srl" />

View file

@ -1,7 +1,10 @@
<query id="getDocumentList" action="select"> <query id="getDocumentListByMemberSrl" action="select">
<tables> <tables>
<table name="documents" /> <table name="documents" />
</tables> </tables>
<index_hint for="ALL">
<index var="index_hint" default="idx_member_srl" type="USE" />
</index_hint>
<columns> <columns>
<column name="*" /> <column name="*" />
</columns> </columns>
@ -9,7 +12,7 @@
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" /> <condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
</conditions> </conditions>
<navigation> <navigation>
<index var="list_order" default="list_order" order="asc" /> <index var="list_order" default="list_order" order="order_type" />
<list_count var="list_count" default="20" /> <list_count var="list_count" default="20" />
<page_count var="page_count" default="10" /> <page_count var="page_count" default="10" />
<page var="page" default="1" /> <page var="page" default="1" />