cancel
Showing results for 
Search instead for 
Did you mean: 

Mass update a field in Z*table

ricky_shaw
Contributor
0 Kudos
241

Hi,
I need to mass update a field in a Z*table that has 20Millions entries.

I am using UPDATE Z*table set + COMMIT WORK while looping in an itab.

I scheduled it as background job which is taking like 6-8 hrs..

Is there any way to make this more faster?

 

 

nomssi
Active Contributor
0 Kudos
  • Select disctint data packages and run the processing in parallel
  • Do not COMMIT at each step of the loop, but in packages of predefined size (You might have to update the error handling)
Sandra_Rossi
Active Contributor
0 Kudos

To reduce the amount in memory and update only few fields, see this thread, Solved: Re: What is the best way to mass update "Custom fi... - SAP Community, and also the discussion around the drawbacks by Mike.

You have to check what is slow: run a trace, check the execution plan. Currently, you just say that it's "slow", but we are blind for the rest. Also, you may update in parallel (possibly via ABAP, or via database hints).

ricky_shaw
Contributor
0 Kudos

Hi Nomssi, Can you please help me with an example for "Selecting distinct data packages ".

I am already scheduling this as job submits with 50 threads.

 

View Entire Topic
nomssi
Active Contributor
0 Kudos

I mean, your 50 jobs should not process the same data set. As Sandra said, we are blind here. 

Best regards

JNN