Hi everyone Let's suppose I have a job where the entire contents of a table is recreated daily with data from a database which is not very available (frequent downtime and slow connection). How can I erase the local table ONLY if reading all the remote data succeeds? I want to avoid the situation that the local table is only partially populated if there are timeouts or disconnections during the map operation, which can take very long. I thought of reading the remote table and putting the data into a temporary in-memory store, and only if this succeeds then proceeding with the map operation. Is it possible? thank you
You are right jlolling, I forgot transactions! Using transactions means that I must use the open/commit transaction components, and if something fails after open, it auto rollbacks, isn't it? thanks enrico
Yes thats the normal way. To use transaction in Talend you have to use the connection component and the commit and rollback components. In your input and output component set the usage of external connection. If your transaction will be growing to large, you have to build chunks of data to proceed.