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
<selectid="selectVariablesByExecutionId"parameterType="org.activiti.engine.impl.db.ListQueryParameterObject"resultMap="variableInstanceResultMap">
select * from ${prefix}ACT_RU_VARIABLE
where EXECUTION_ID_ = #{parameter, jdbcType=VARCHAR}
and TASK_ID_ is null
</select>
<selectid="selectVariablesByExecutionIds"parameterType="org.activiti.engine.impl.db.ListQueryParameterObject"resultMap="variableInstanceResultMap">
select * from ${prefix}ACT_RU_VARIABLE
where TASK_ID_ is null
and EXECUTION_ID_ in
<foreachitem="item"index="index"collection="parameter"open="("separator=","close=")">
#{item}
</foreach>
</select>
可以通过对act_ru_variable表字段EXECUTION_ID_增加索引来提升查询性能。
ALTERTABLE`act_ru_variable`
ADD INDEX `ACT_IDX_EXECUTION_ID_`(`EXECUTION_ID_`);
The text was updated successfully, but these errors were encountered:
我们在生产中环境中发现位于activiti-core/activiti-engine/src/main/resources/org/activiti/db/mapping/entity/VariableInstance.xml中以下查询sql存在耗时异常问题
可以通过对
act_ru_variable
表字段EXECUTION_ID_
增加索引来提升查询性能。The text was updated successfully, but these errors were encountered: