DS Job Design

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

....and hence my suggestion of reading it once, getting it transformed and loading into a flat file which has identical meta data as their respected tables. One hit on table, six flat files for six tables, even great for restartablity.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

DSguru2B wrote:....and hence my suggestion of reading it once, getting it transformed and loading into a flat file which has identical meta data as their respected tables. One hit on table, six flat files for six tables, even great for restartablity.
Absolutely agreed. :)
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
oacvb
Participant
Posts: 128
Joined: Wed Feb 18, 2004 5:33 am

Post by oacvb »

You might be right, But we need to think about restart option aswell. In real scenario, sometimes all tables except one might have gone fine. When you are re-executing, it might be difficult to clean-up the old records and some manual process are required. To avoid that he can go ahead with 6 jobs. It's easy to develop but hard to maintain. Always we need to think about all the options while developing.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

oacvb wrote:You might be right, But we need to think about restart option aswell. In real scenario, sometimes all tables except one might have gone fine. When you are re-executing, it might be difficult to clean-up the old records and some manual process are required. To avoid that he can go ahead with 6 jobs. It's easy to develop but hard to maintain. Always we need to think about all the options while developing.
Not sure if you could able to comprehend whats been said. A job which will extract the data from table and write into 6 diff Flat files. (single read).
Other 6 different jobs which reads each flat file and loads using SQL loader. (Hence achieved restartability as well).
As noted writing into Flat file comparatively effecient and loading using SQL loader from flat file is also comparatively effecient.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
oacvb
Participant
Posts: 128
Joined: Wed Feb 18, 2004 5:33 am

Post by oacvb »

DSGuru solution is really a good one, I started writing my previous message as your reply to

kumar_s
Posted: Sun Mar 11, 2007 7:05 pm

--------------------------------------------------------------------------------





Even if database is very fine tuned and has high band width, its not worth hitting the database again and again for the same data. IMHO.


But unfortunately it missed the sequence.
Post Reply