新增渐进式处理ProgressiveMapper,支持渐进式全量删除和渐进式记录处理#798
Open
chentianming11 wants to merge 1 commit intoabel533:masterfrom
Open
新增渐进式处理ProgressiveMapper,支持渐进式全量删除和渐进式记录处理#798chentianming11 wants to merge 1 commit intoabel533:masterfrom
chentianming11 wants to merge 1 commit intoabel533:masterfrom
Conversation
Author
|
渐进式全量删除:可避免大数据全量删除出现慢sql或者主从延时过高问题; |
Owner
|
感谢PR! 这个方法处理大量数据的思路非常好,但是也有一定的限制。 最主要的问题是,当前项目中,除了 weekend 模块是基于 jdk8 编译外,其他都是 jdk1.6,所以也不能合并进来。 通用Mapper除了提供基本的通用方法外,另一个主要目的就是自己能方便的扩展通用方法,所以建议自己做一层封装的库。 如果你使用的 jdk8+,可以看看 https://github.com/mybatis-mapper/mapper 这个项目,目前我有真实项目在用,预计这两周会发布正式版。 这个新项目后续会提供一个关联项目用于收集大家提供的各种通用方法。 |
Author
|
感谢作者大大回复,会关注新项目的。既然新项目采用JDK1.8+,感觉这个渐进式处理可以放在新项目里面~
…------------------ 原始邮件 ------------------
发件人: "abel533/Mapper" ***@***.***>;
发送时间: 2021年8月5日(星期四) 中午1:44
***@***.***>;
***@***.******@***.***>;
主题: Re: [abel533/Mapper] 新增渐进式处理ProgressiveMapper,支持渐进式全量删除和渐进式记录处理 (#798)
感谢PR!
这个方法处理大量数据的思路非常好,但是也有一定的限制。
最主要的问题是,当前项目中,除了 weekend 模块是基于 jdk8 编译外,其他都是 jdk1.6,所以也不能合并进来。
通用Mapper除了提供基本的通用方法外,另一个主要目的就是自己能方便的扩展通用方法,所以建议自己做一层封装的库。
如果你使用的 jdk8+,可以看看 https://github.com/mybatis-mapper/mapper 这个项目,目前我有真实项目在用,预计这两周会发布正式版。
这个新项目后续会提供一个关联项目用于收集大家提供的各种通用方法。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Owner
|
计划先发个小版本,后续发布个jdk8的版本。 |
Author
|
👌🏻 |
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.
note:使用渐进式处理Mapper,数据表必须包含id字段。