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

关于提升Load批量处理问题 #1100

Open
OsmondGao opened this issue Mar 16, 2023 · 1 comment
Open

关于提升Load批量处理问题 #1100

OsmondGao opened this issue Mar 16, 2023 · 1 comment

Comments

@OsmondGao
Copy link

我看了 #863 ,调整了loadBatchSize的大小,目的是尽可能降低load频次,但是我发现在DbLoadAction的442行,
DbLoadWorker worker = new DbLoadWorker(context, Arrays.asList(retryEventData), false);// 强制设置batch为false

这里强制false后,导致后面的过程还是要一条一条处理,请问这里是出于什么原因才强制false的?

@quanllong
Copy link
Contributor

这行代码之前有个判断 if (true == partFailed) ,意思是如果部分写入失败就改为单条写入 ,因此设置batch为false

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

No branches or pull requests

2 participants