Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义InnerInterceptor在Db.saveBatch(entityList)批量插入模式下不能稳定调用 #5895

Open
icvozh398 opened this issue Dec 29, 2023 · 6 comments
Assignees
Labels

Comments

@icvozh398
Copy link

当前使用版本(必填,否则不予处理)

3.5.5

该问题是如何引起的?(确定最新版也有问题再提!!!)

在sql拦截器中,处理了所有insert时的sql,来抽取即将存入库中的数据,批量插入时不会稳定每次调用InnerInterceptor。如果这是出于性能优化合理的选择,应当提供一个可以稳定抽取的过滤层

重现步骤(如果有就写完整)

任意新建一个InnerInterceptor,在其中打断点或输出日志,调用Db.saveBatch(entityList),存入百条以上数据,即可看见调用只有很少几次

报错信息

@chess3cake
Copy link

@icvozh398 MetaObjectHandler应该能稳定调用,考虑一下这个呢?

@wzkris
Copy link

wzkris commented Jan 11, 2024

mark

@VampireAchao VampireAchao self-assigned this Jan 11, 2024
@VampireAchao
Copy link
Contributor

我在跟进

@nieqiurong nieqiurong added the bug label Apr 11, 2024
@CalmArrow
Copy link

我在跟进

这个有进展吗?Batch类操作都有类似的情况

@zhaoleiHome
Copy link

我在跟进

我今天也遇到了这个问题,麻烦问一下现在什么情况了,有什么方法可以先绕过这个BUG吗?

@zhaoleiHome
Copy link

截图_选择区域_20240517233705
看样子是这里的原因,好像真的不好改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants