当前位置:网站首页>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
边栏推荐
- C thread lock and single multithreading are simple to use
- 什麼是Per-Title編碼?
- Palindrome related topics
- MySQL unique index has no duplicate value, and the error is repeated
- C language project practice: 24 point game calculator (based on knowledge points such as structure, pointer, function, array, loop, etc.)
- Openharmony South learning notes - hi3861+hc-sr04 ultrasonic testing
- Using JS to parse and execute XSS automatically
- CSDN写文方法(二)
- 利用shell脚本实现封禁扫描频率过高的ip
- 如何实现多个传感器与西门子PLC之间485无线通讯?
猜你喜欢

Towhee 每周模型
![[test platform development] 21. complete sending interface request and display response header information](/img/53/42411ceb6e0e304355ddc396ea2922.png)
[test platform development] 21. complete sending interface request and display response header information
![[untitled]](/img/6c/df2ebb3e39d1e47b8dd74cfdddbb06.gif)
[untitled]

Program design of dot matrix Chinese character display of basic 51 single chip microcomputer

【小程序自动化Minium】一、框架介绍和环境搭建

Oracle 报表常用sql

FastAPI应用加入Nacos

【测试平台开发】23. 接口断言功能-保存接口断言和编辑回显

【测试平台开发】二十、完成编辑页发送接口请求功能

Fastapi application joins Nacos
随机推荐
4. Find the median of two positive arrays
直播课堂系统02-搭建项目环境
【测试平台开发】23. 接口断言功能-保存接口断言和编辑回显
Typora图床配置详细教程
转自玉溪信息公开:mRNA新冠疫苗、九洲马破伤风免疫球蛋白等产品有望年内上市。
mysql函数汇总之数学函数
Game (2) of 2022 Henan Mengxin League: solution to supplementary questions of Henan University of Technology
【刷题记录】19. 删除链表的倒数第 N 个结点
[pyqt5 installation and use]
身份证号正则验证
C thread lock and single multithreading are simple to use
数字相加的精度问题
【无标题】
Towhee weekly model
Towhee 每周模型
Argocd user management, RBAC control, script login, APP synchronization
mysql函数汇总之字符串函数
MySQL unique index has no duplicate value, and the error is repeated
反射调用事务方法导致事务失效
Opencv calculation outsourcing rectangle