简体   繁体   English

如何将增量数据从本地 MySql 复制到 Azure MySql 当本地 Z9DF306F03DAEDCCF82ZF5E2 使用 AEDCCF82ZF5E2 参考时的日期字段

[英]how to copy incremental data from on-premises MySql to Azure MySql when on-premises MySql has no date field for reference using ADF

I was trying to copy from on-premises mysql to azure mysql using ADF.我试图使用 ADF 从本地 mysql 复制到 azure mysql。 Some tables have date filled so, that I can use tumbling window feature and populate incremental data.一些表格已填写日期,因此我可以使用翻转 window 功能并填充增量数据。 But some of the tables don't have any date filled for reference.但有些表格没有填写任何日期以供参考。

Is their any feature to get incremental data for such tables?他们是否有任何功能可以获取此类表的增量数据?

Per my experience,data fields(such as createTime,modifyTime) have to be produced when you design table structure.It's significant for log monitor,troubleshooting and increment.As @Martin said in the comment,you always need to have a field to determine the criteria for increments.根据我的经验,在设计表结构时必须生成数据字段(如 createTime、modifyTime)。这对于日志监控、故障排除和增量非常重要。正如@Martin 在评论中所说,您总是需要一个字段来确定增量的标准。

If it is acceptable, you could add data field(just auto completed,no need to change your other strategy) to guaranteed consistency from now on.If the table can't be modified,maybe you need to consider adding other residence for new data at the same time.For example, Azure table storage,which you could control columns.如果可以接受,您可以从现在开始添加数据字段(只是自动完成,无需更改您的其他策略)以保证一致性。如果无法修改表格,可能需要考虑为新数据添加其他位置同时。例如,Azure 表存储,您可以控制列。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM