on 2019 Nov 13 10:22 AM
Hi,
I am trying to update a table from AMDP and the "ZMYTABLE1" has about 100,000 records.
Is this a good way to use UPDATE? Is this update called for each line or is does this use an array update?
This takes a long time to update and the program runs for more than 20 mins to update. Is there any better way?
FYI: ZMYTABLE is a table that has over 300 fields.
Request clarification before answering.
Hi Vijay,
Not sure, but the explicit SET and the WHERE clause might be the performance problem here, causing comparisons for every row / column combination.
Try a block update like that:
UPDATE <dbtab> FROM TABLE <itab>.
No SET, no WHERE, no alias. Make sure <itab> has the same structure as <dbtab> and is filled with ALL the correct data in all columns. If necessary, do a pre-read first, to merge any incoming partial values.
See also the link: Alternative 3: ...from table <itab> for an example.
Hope that helps,
Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
30 | |
8 | |
7 | |
6 | |
6 | |
6 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.