Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern (Do you have any advice about how to structure a program that will be moving data between pgsql and sqlsrv databases?)
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern [message #4752 is a reply to message #4749] Sat, 23 May 2015 09:46 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2367
Registered: April 2006
Location: Surrey, UK
Senior Member
I personally would not create a separate class to perform the transformation. Basically what you are trying to do is this:
(1) Read a record from tableA with one structure
(2) Add a record to tableB with a different structure

You can either put the transformation code between these two steps, or in the _cm_pre_insertRecord method of table tableB. I personally have used both of these methods, and as they both work it is just a matter of personal preference.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to use actions(submit,submitstay,copy,quit)
Next Topic: tutorial4 Viewing the Tree structure
Goto Forum:
  


Current Time: Sat Nov 23 00:04:19 EST 2024

Total time taken to generate the page: 0.01223 seconds