Update 20m rows table

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
prasad v
Participant
Posts: 174
Joined: Mon Mar 30, 2009 2:18 am

Update 20m rows table

Post by prasad v »

Hi

I have table which has over 20million rows in it. In Source System, many rows (over 30%) are updated every day. I am using Upsert method in datastage. It is taking more time for upsert.

Is there any other method we can use to get the performance?

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

More time than what?

20 million is not that large. Let's start with this. How are you determining which records have been updated? Do you also need to insert new records or are we literally just talking just inserts? Are the columns in your update's where clause indexed?
-craig

"You can never have too many knives" -- Logan Nine Fingers
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

Also do check if the table and indexes are analyzed.

Have you given complete reload a thought?
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
prasad v
Participant
Posts: 174
Joined: Mon Mar 30, 2009 2:18 am

Post by prasad v »

In My Current Process, I have written custom insert and update scripts and pasted in ODBC Stage and Selected the Key field.
rkashyap
Premium Member
Premium Member
Posts: 532
Joined: Fri Dec 02, 2011 12:02 pm
Location: Richmond VA

Post by rkashyap »

What is your target database?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Columns named in the WHERE clause of the UPDATE statement should be indexed, and the table statistics must be current.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There's an echo in this thread, need to get that looked into. :wink:
-craig

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