Report turning blank when table is loaded

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
shalini11
Participant
Posts: 74
Joined: Thu Jan 22, 2009 3:00 am

Report turning blank when table is loaded

Post by shalini11 »

Hi All,

I have a simple DS job which is extracting data from a join of some tables and loading it into target table. It is truncate and load.

Cognos report fires query on the target table. The table is refreshed every 1/2 an hour. At the time when table is getting truncated and loaded with fresh data, the report turns out blank for 2-3 mins while data is getting loaded.

Update and insert can be one solution but we dont need that. I have to do truncate and load only.

Is there any other way to avoid the reports getting blank?

Your help would be highly appreciated.

Thanks
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Two options that immediately come to mind are:

(a) Lock the table during the load process so that Cognos can't generate reports during that time.

(b) Load to a different table name, then in a closed SQL block lock the original table and delete it, then rename the new table to the old name.

I prefer the first method, as it is simpler and less prone to error.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What kind of volume are we talking about in this table? If it's not too large, then a 'Clear' (transactional delete) rather than a truncate would avoid the problem as well. What batabase, btw?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply