[app-builder] 优化部分性能,添加流程数据定时清理机制#21
Closed
FUNK6666 wants to merge 6 commits intoModelEngine-Group:mainfrom
Closed
[app-builder] 优化部分性能,添加流程数据定时清理机制#21FUNK6666 wants to merge 6 commits intoModelEngine-Group:mainfrom
FUNK6666 wants to merge 6 commits intoModelEngine-Group:mainfrom
Conversation
CodeCasterX
reviewed
Apr 9, 2025
| /** | ||
| * 用于缓存app_id和meta的关系 | ||
| */ | ||
| public static final Cache<String, Meta> AIPP_ID_LAST_META_CACHE = Caffeine.newBuilder() |
Member
| * 用于获取flowdefinition的缓存 | ||
| * | ||
| * @param flowsService 操作flow的service | ||
| * @param flowsService 操作flow的service |
Member
There was a problem hiding this comment.
| private static Meta getLatestMetaByAppId(MetaService metaService, String appId, OperationContext context) { | ||
| List<Meta> metas = MetaUtils.getAllMetasByAppId(metaService, appId, context); | ||
| if (CollectionUtils.isEmpty(metas)) { | ||
| throw new AippException(AippErrCode.APP_CHAT_DEBUG_META_NOT_FOUND); |
Member
| if (isDebug) { | ||
| return getLatestMetaByAppId(metaService, appId, context); | ||
| } | ||
| // get一个aipp_id的缓存,然后根据aipp_id查询最新发布版的meta |
Member
| private Context context; | ||
|
|
||
| /** | ||
| * 判断是否有@应用 |
| import java.util.concurrent.ThreadLocalRandom; | ||
|
|
||
| /** | ||
| * Uuid的Utils类。 |
Member
CodeCasterX
reviewed
Apr 9, 2025
| */ | ||
| @Scheduled(strategy = Scheduled.Strategy.CRON, value = "0 0 3 * * ?") | ||
| @Transactional | ||
| public void cleanContextSchedule() { |
Member
| * 包括成功、失败、终止的流程数据 | ||
| * | ||
| * @author 杨祥宇 | ||
| * @since 2025/04/02 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








1、添加流程数据定期清理机制
2、更改waterflow中条件表达式执行时uuid生成规则,提升性能
3、添加缓存,提升对话性能