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

似乎写入速度很慢 #94

Open
ysq5202121 opened this issue Aug 11, 2023 · 8 comments
Open

似乎写入速度很慢 #94

ysq5202121 opened this issue Aug 11, 2023 · 8 comments

Comments

@ysq5202121
Copy link

image
image
image
image
不知道要怎么调整才能解决背压问题

@ysq5202121
Copy link
Author

@itinycheng

@itinycheng
Copy link
Owner

Sink只是将数据写出给server,没什么多余的操作;
如果是Upsert操作看下是否是大量生成Alter语句导致的;

@ysq5202121
Copy link
Author

@会有大量upsert

@itinycheng
Copy link
Owner

@会有大量upsert

可能和这个upsert有关,当前connector会将update的数据解析成 alter..update..,执行alter操作对clickhouse来说比较重;
这个是clickhouse慢,最好将update转成insert操作并配合表引擎来规避update操作,看下readme中的sink.update-strategy

@ysq5202121
Copy link
Author

@itinycheng 会造成flink炸裂

@ysq5202121
Copy link
Author

@itinycheng 如果改成insert就会出现大量重复数据,同步需要时间,会造成一段时间出现数据不正确的问题,如果采用版本似乎又不支持,需要写代码

@ysq5202121
Copy link
Author

难道我了

@itinycheng
Copy link
Owner

配合表引擎比如:ReplacingMergeTree这种是可以操作的,我这边也没太多别的方法;

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