瀏覽代碼

元素游标增加fetchSize

欧阳劲驰 1 月之前
父節點
當前提交
b3bf6ad0b9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/mapper/GisSurveyLayerApplyMapper.xml

+ 1 - 1
src/main/resources/mapper/GisSurveyLayerApplyMapper.xml

@@ -104,7 +104,7 @@
         and la.apply = 'add' and la.kind = 'line';
     </select>
 
-    <select id="findAllByJobIdAndKind" resultMap="BaseResultMap">
+    <select id="findAllByJobIdAndKind" fetchSize="3000" resultMap="BaseResultMap">
         select la.code, la.job_id, la.layer, la.kind, la.apply, la.source, la.up_node, la.down_node,la.elevation,
         la.depth, la.no,
         case when la.kind = 'line' and un.code is not null and dn.code is not null