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

关于task.mapping字段问题 #38

Open
Ricky-Hao opened this issue Apr 17, 2019 · 1 comment
Open

关于task.mapping字段问题 #38

Ricky-Hao opened this issue Apr 17, 2019 · 1 comment

Comments

@Ricky-Hao
Copy link
Contributor

一个MongoDB的嵌套字段加入不在task.mapping配置里,就不会被同步。
例如:

{"data": {"number": 1, "geo": [0, 0]}}

(在配置的task.mapping部分已存在"data": "data"的映射)
这个MongoDB文档,在仅修改data.geo的值的时候,程序会进行ignoreUpdate。必须手动将"data.geo": "data.geo"添加进task.mapping映射只后,才会实时同步。

希望在做ignoreUpdate检查时,对key的检测可以从其第一个元素开始,而不仅仅是完整的key字段匹配。

@renzholy
Copy link
Member

听起来是个不错的特性,感兴趣的话希望你可以提个pr

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