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

多表结果关联一个ES索引,这种类型同步有没什么好方案呀。 #45

Open
iceykb opened this issue Mar 29, 2022 · 1 comment

Comments

@iceykb
Copy link

iceykb commented Mar 29, 2022

No description provided.

@WGrape
Copy link
Owner

WGrape commented Mar 30, 2022

有两个解决方案 :

1、把多表关联后的结果,存储到一个新表中,这个表对应的数据就是ES索引中的数据。这样使用Canal同步这一张表即可。

2、使用esupdater监听多个表的变更事件,每张表数据更新时,都处理相应的业务逻辑即可,最终把数据写入到ES索引中。

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