当前位置:网站首页>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
边栏推荐
- 运维高级作业03
- 生成订单号
- Advanced operation and maintenance 03
- 104 maximum depth of binary tree and 543 diameter of binary tree and 124 maximum path sum of binary tree
- 微信官方出品!小程序自动化框架 minium 分享预告
- mysql唯一索引无重复值报错重复
- 【测试平台开发】十七、接口编辑页面实现下拉级联选择,绑定接口所属模块...
- Uni app knowledge points and records of problems and solutions encountered in the project
- Live classroom system 03 model class and entity
- 【软件测试】盘一盘工作中遇到的 Redis 异常测试
猜你喜欢

Feignclient utilise un tutoriel détaillé (illustration)

直播课堂系统02-搭建项目环境

@Feignclient detailed tutorial (illustration)

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

OpenCV计算外包矩形
![[array & String & Macro exercise]](/img/44/26debc1ee958277935e73a75d894d4.png)
[array & String & Macro exercise]

爬虫中selenium实现自动给csdn博主文章点收藏
![Looking for peak [Abstract dichotomy exercise]](/img/99/122e79784f0f07120680d2cbcf89da.png)
Looking for peak [Abstract dichotomy exercise]

Advanced operation and maintenance 02

直播课堂系统01-数据库表设计
随机推荐
Can bus quick understanding
@Feignclient detailed tutorial (illustration)
C语言入门实战(11):输入一组正整数,求逆序数的和
【无标题】测试【无标题】测试
Looking for peak [Abstract dichotomy exercise]
Towhee weekly model
The win11 installation system prompts that VirtualBox is incompatible and needs to uninstall the solution of virtual, but the uninstall list cannot find the solution of virtual
直播课堂系统03-model类及实体
Prometheus入门使用(三)
正则表达式常用语法解析
运维高级作业03
21 - 二叉树的垂直遍历
Official wechat product! Applet automation framework minium sharing Preview
对象使用过程中背后调用了哪些方法
Zhongwang CAD professional 2022 software installation package download and installation tutorial
Oracle 报表常用sql
@FeignClient使用詳細教程(圖解)
【小程序自动化Minium】三、元素定位- WXSS 选择器的使用
[interview frequency] cookies, sessions, tokens? Don't worry about being asked after reading it
[software test] MQ abnormal test encountered in disk-to-disk work