Files
alfresco-community-repo/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-select-children-SqlMap.xml
Derek Hulley 36f8874211 Node Archive and Move performance improvements
- This use case uses getPaths() instead of cycleCheck.  This is due to the nature of the archive process, but will
   be changed once cycleCheck is made to happen faster.
 - Efficient child node cache invalidation


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31382 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-10-20 14:28:13 +00:00

30 lines
1.0 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="alfresco.node.select.children">
<select id="select_ChildAssocsOfParent_Limited" parameterType="ChildAssoc" resultMap="result_ChildAssoc">
<include refid="alfresco.node.select_ChildAssocsOfParent_Query"/>
<if test="ordered == true">
<include refid="alfresco.node.select_ChildAssoc_OrderBy"/>
</if>
</select>
<select id="select_ChildNodeIds_Limited" parameterType="ChildAssoc" resultMap="result_ChildAssocIds">
<![CDATA[
select
ca.id as id,
ca.child_node_id as child_node_id
from
alf_child_assoc ca
where
ca.parent_node_id = #{parentNode.id} and
ca.is_primary = #{isPrimary} and
ca.id >= #{id}
order by
ca.id
]]>
</select>
</mapper>