Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3255

Performance issue while deleting entries from internal table

$
0
0

Hello,

 

I have two internal tables. Both internal tables have more than 50,000 rows.

The scenario is: I want to delete data in one internal table based on other internal table entries.

 

I have tried both below scenarios:

1. Looping one internal table and deleting entries in other internal table based on where condition

 

Loop at itab1.

Delete itab2 where field = itab1-field.

Endloop.

 

2. Converting the values in itab1 into ranges and then deleting from ranges.

 

Delete itab2 where field in r_range1.

 

 

But both syntaxes are taking lot of time. I understand that since there are more than 50,000 records, it could take some time.

But the user is running the report online. So, waiting for 5 minutes is becoming an issue.

 

Is there any better syntax than the two described above?

I have tried searching forums, but most of the thread talk about Database deletes and not internal table deletes.


Viewing all articles
Browse latest Browse all 3255

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>