Repository navigation
feat(CRUD): 共享操作上下文并隔离实体缓存结果 - #380
Merged
Merged
Conversation
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.
目的与行为
为 CRUD 扩展保存完整的部分更新输入,并在分页 count/rows/装配之间复用同次授权快照;上下文相关的完整实体不能通过共享缓存跨订阅复用。
验证与依赖
缓存声明优化后,真实 H2 缓存 5 项通过,零失败/错误/跳过。纯转换验证 ID/全量结果共享、更新失效及只转换一次;上下文转换仍绕过旧缓存,普通仓库及 DSL hook 行为保持有效。测试计数工具支持指定元数据作用域并记录真实 SELECT,缓存测试使用数据库作用域,避免只在表级记录写操作导致查询计数恒为零;缓存命中确认为零查询、更新后两个入口各重新读取一次。上游 EasyORM 结果转换/默认仓库15项、下游 components PostgreSQL/MySQL scope/schema权限与资产装饰器独立否决2项通过。
此前有效的35项中其余 CRUD事件、null扩展Map、分页/嵌套上下文、事务回滚和取消证据复用;字典4项及下游其余未改动边界沿用既有证据。不宣称完整平台HTTP或生产缓存集群已实跑。
新增缓存接口依赖的 EasyORM #138 已由维护者合入
4.2,其 自动发布 成功。直接下载远端4.2.3-20261111.091328-5核验仓储和转换器缓存声明、显式表绑定 API,CI 通过既有mvnw -U刷新4.2.3-SNAPSHOT。README 已同步缓存边界、提交快照及查询上下文契约。未新增后台任务、权限模型或全局授权缓存。当前 head
ec1deb3ed的 CI 42977661976 第 2 次检查已 SUCCESS,使用上游正式发布的 SNAPSHOT 完成原工作流。首次缺少ReactiveRepository.isResultCacheable()的依赖阻塞已解除,没有增加反射、旧版回退或修改源码。