当前位置:网站首页>Kettle implements shared database connection and insert update component instances
Kettle implements shared database connection and insert update component instances
2022-07-23 14:56:00 【Bruce Lee hibernation】
Common components
1、 Shared database connection
The newly created database connection only belongs to a certain conversion program
If you want all conversion programs to use this connection , Sharing needs to be enabled

2、 Table input component
demand ∶ Put the data in the table , Sync to another table .
analysis
- This is a transformation task
- Input ︰ Read the data of the table
- transformation : There is no conversion process
- Output : Write the results into the table
Realization
Development procedure

Configuration input
First configure the database connection sharing




Configure output



test run


3、 Insert update component
Job requirements ∶ take A The data of the table is synchronized to B In the table , Guarantee B Table data and A The data in the table is consistent , Implementation is an operation that is constantly updated
- A The table has been updated , The updated data will also be synchronized to B In the table
- A The table has not been updated , Even if the program runs ,B The table does not change
- The process of data synchronization
- Only the updated data is synchronized each time
- Data that has been synchronized , No more synchronization
- At work, you usually synchronize once a day , The program is executed once a day
solve ∶ Insert updated output components
function : Only the updated data will be synchronized , Data that has been synchronized will not be synchronized again
- Data update
- Insert a new piece of data
- Modify an old piece of data
- Data update
Realization : anytime , The data synchronization of the two tables is consistent
Development and transformation task flow chart

Define input
Consistent with the previous steps

Define insert / to update


Only in id To make a comparison


test run


Modify the data in the original table or add , Execute it again , Automatically update
summary
This paper mainly focuses on two knowledge points :
- Shared database connection
- Insert update component
- Synchronization service
- Total quantity ︰ Synchronize all data one at a time
- Guarantee A and B It's consistent
- Delete each time B All contents , then , Resynchronization
- The performance of the program is poor , When the amount of data is large , Very slow , Not recommended
- Table output ︰ Full amount of components
- Guarantee A and B It's consistent
- The incremental ︰ Every time an updated data synchronization occurs , If there is no update, the synchronized data is no longer synchronized
- Guarantee A and B It's consistent
- Incremental methods are used in work
- Insert update ︰ Incremental components
- Total quantity ︰ Synchronize all data one at a time
The above two knowledge points are very suitable and suitable for working scenes , It can also be matched with homework , Yi Yi Yong Lao
边栏推荐
- [software testing] how to sort out your testing business
- @FeignClient使用详细教程(图解)
- Yunna | how to manage fixed assets? How to manage fixed assets?
- Regular verification of ID number
- mysql 之general_log日志
- [WinForm] desktop program implementation scheme for screenshot recognition and calculation
- Towhee 每周模型
- CSDN writing method (II)
- CSDN写文方法(二)
- LeetCode-227-基本计算器||
猜你喜欢

Yunna - how to strengthen fixed asset management? How to strengthen the management of fixed assets?

【刷题记录】19. 删除链表的倒数第 N 个结点

【无标题】

Advanced operation and maintenance 02

leetcode: 17. 电话号码的字母组合
![Looking for peak [Abstract dichotomy exercise]](/img/99/122e79784f0f07120680d2cbcf89da.png)
Looking for peak [Abstract dichotomy exercise]
![[array & String & Macro exercise]](/img/44/26debc1ee958277935e73a75d894d4.png)
[array & String & Macro exercise]

Cmake notes

转自玉溪信息公开:mRNA新冠疫苗、九洲马破伤风免疫球蛋白等产品有望年内上市。

直播课堂系统02-搭建项目环境
随机推荐
21 - vertical traversal of binary tree
什麼是Per-Title編碼?
Advanced operation and maintenance 03
linux定时备份数据库脚本
CSDN写文方法(二)
String function of MySQL function summary
【数组&&字符串&&宏练习题】
What methods are called behind the use of objects
【测试平台开发】23. 接口断言功能-保存接口断言和编辑回显
Right click to create a new TXT. The new text file is missing. You can solve it by adding a registry. Find the ultimate solution that can't be solved
【测试平台开发】二十、完成编辑页发送接口请求功能
Russia hopes to effectively implement the "package" agreement on the export of agricultural products
直播课堂系统03-model类及实体
Advanced operation and maintenance 02
Official wechat product! Applet automation framework minium sharing Preview
C语言入门实战(11):输入一组正整数,求逆序数的和
NVIDIA vid2vid论文复现
FastAPI应用加入Nacos
mysql函数汇总之数学函数
Towhee weekly model