当前位置:网站首页>基于flowable的upp(统一流程平台)运行性能优化(2)
基于flowable的upp(统一流程平台)运行性能优化(2)
2022-08-03 03:06:00 【thubier(段新建)】
upp整体架构决定了我们的内部并不全依赖于核心组件,我们完全由能力在外围控制核心组件的行为,所以有必要回归下upp的整体结构:

基于(1)的分析,业务模型压缩方案基本确认。运行期需要压缩数据模型如下:
act_ge_*
a.act_ge_bytearray:
这张表存储的是flowable中使用的大对象,如流程发布后的运行图/变量表中的大对象信息。运行图需要进行版本管理,所以不需要关注。
所以整个来看关注运行期变量/与历史沉积变量
--运行期总变量信息:
select *from act_ge_bytearray where DEPLOYMENT_ID_ is null and NAME_='var-flow_assignee'
--运行期有效变量信息:
select *from act_ge_bytearray where DEPLOYMENT_ID_ is null and NAME_='var-flow_assignee' and ID_ in(select BYTEARRAY_ID_ from act_ru_variable where BYTEARRAY_ID_ is not null)
--历史沉积变量信息
select * from act_ge_bytearray where DEPLOYMENT_ID_ is null and NAME_='hist.var-flow_assignee'
--历史沉积有效变量信息
select * from act_ge_bytearray where DEPLOYMENT_ID_ is null and NAME_='hist.var-flow_assignee' and ID_ in(select BYTEARRAY_ID_ from act_hi_varinst ahv where BYTEARRAY_ID_ is not null)
act_ru_*
b.act_ru_actinst
c.act_ru_execution
d.act_ru_task
e.act_ru_variable
本质上运行期的信息不需要调整,但upp的结构提醒着我们一切皆有可能。
业务数据终审是基于wfengine的流程索引表、撤回重选流程的数据运行期信息已经不再有意义。所以需要清理的信息将基于流程实例索引表与流程实例轮次表进行处理。
---需要考虑运行沉积时间:【15天到6个月】
select *from act_hi_procinst where PROC_INST_ID_ in(select FLW_PROC_INSTANCE_ID from dhcc_flw_bizdata_index dfbi where FLW_STATUS='完成')
---需要考虑沉积时间
select *from act_hi_procinst where PROC_INST_ID_ in(select FLW_PROC_INSTANCE_ID from dhcc_flw_bizdata_index_hi dfbih)
根据获取到的流程实例对象进行数据转存操作。
act_hi_*
f.act_hi_comment
g.act_hi_identitylink
h.act_hi_instance_rel
i.act_hi_procinst
j.act_hi_actinst
k.act_hi_taskinst
*l.act_hi_taskinst_approve
*m.act_hi_taskinst_approve_delete
n.act_hi_varinst
由于我们对审批记录信息进入重选构建(带*表),所以,当流程终审完或撤回重选流程后,相应的数据在表中沉积一段时间后,可以进行转存。转存的数据员类似ru表的检测。
---需要考虑运行沉积时间:【15天到6个月】
select *from act_hi_procinst where PROC_INST_ID_ in(select FLW_PROC_INSTANCE_ID from dhcc_flw_bizdata_index dfbi where FLW_STATUS='完成')
---需要考虑沉积时间
select *from act_hi_procinst where PROC_INST_ID_ in(select FLW_PROC_INSTANCE_ID from dhcc_flw_bizdata_index_hi dfbih)
根据获取的流程实例,对相应的数据进行转存操作。
边栏推荐
- els 计分
- leetcode:163 缺失的区间
- (一)Nacos注册中心集群环境搭建
- Useful Monitoring Scripts What you want part1 in Oracle
- 2022-08-02 顾宇佳 学习笔记 多线程
- C语言——-动态内存开辟与管理(malloc,free,calloc,realloc)+柔性数组
- iScroll系列之下拉刷新 + 上拉加载更多
- IPv4编址;A类、B类、C类、D类、E类IP地址(IP地址;网络地址和主机地址;子网掩码;网关;广播地址;)
- 什么是数据标注? 数据标注公司主要做什么?
- Jincang Database Pro*C Migration Guide (3. KingbaseES Pr*oc Compatibility with Oracle Pro*c)
猜你喜欢
随机推荐
Spark SQL简介
大佬们,我有点不明白:为什么oracle-cdc的文档写connector可以做到exactly-o
ROS通信模块:秒懂话题通信
重定向printf到USB CDC、串口2
Guys, I don't understand a bit: why the documentation of oracle-cdc writes that the connector can be done exactly-o
在VScode里调试ROS程序
compose 位移视图
我终于逃离了互联网,却陷入了迷茫
How to write test cases in software testing technology (2)
ldap创建公司组织、人员
C语言入门--指针
流程图(1)
Auto.js Pro 编写第一个脚本hello world
基于 Cyclone IV 在 Quartus 中配置 IP 核中的 PLL、RAM 与 FIFO 的详细步骤及仿真验证
Best Practices for Migration from Jincang Database from MySQL to KingbaseES (3. MySQL Database Migration Practice)
kubernetes部署ldap
nVisual信息基础设施可视化管理
【云原生】阿里云ARMS业务实时监控
第八章 字符输入输出和输入验证
二叉树的前序遍历、中序遍历、后序遍历和层序遍历









