-
Book Overview & Buying
-
Table Of Contents
Talend Open Studio Cookbook
By :
Database sessions allow the developer to control how and when the data is committed to a database. This recipe shows how this is achieved in Talend.
Open the job jo_cook_ch07_0060_databaseSession. On inspection, you will see that the job has been set up to commit after each record has been written.
The steps to be performed are as follows:
Run the job. You will see that it is very slowly adding the records to the database.
Kill the job. If you inspect the database table testSession, you will see that the records have been added to the database.
Drag tMysqlConnection from the metadata panel and tMysqlCommit from the palette (note that this isn't available from the Repository panel) and wire up as shown in the following screenshot:

Open tMysqlOutput and tick the option for Use an existing connection. You will see that all the connection information is now hidden.
Run the job and Kill it before all ten records have been processed. If you examine...