Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reading ADRC with performance but only city_code and streetcode

Former Member
0 Likes
554

Hello,

we have a lot of duplicate entries in Streets and cities. So I have to find out, if they are already in use by ADRC.

The follwing ABAP is very slow (because I am not using the table key), so I try to find a fast way:

   

SELECT SINGLE  * FROM  adrc

          
WHERE  city_code   = city_code

          
AND    streetcode  = strt_code.

Any ideas?

Thanks, Regards Mario

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
430

You could put an index on those two.

Neal

PS: But really, how often will it be used?  Once a month?  Is it worth worrying about a long run time if it is rarely used?

Hello,

we have a lot of duplicate entries in Streets and cities. So I have to find out, if they are already in use by ADRC.

The follwing ABAP is very slow (because I am not using the table key), so I try to find a fast way:

   

SELECT SINGLE  * FROM  adrc

          
WHERE  city_code   = city_code

          
AND    streetcode  = strt_code.

Any ideas?

Thanks, Regards Mario

1 REPLY 1
Read only

Former Member
0 Likes
431

You could put an index on those two.

Neal

PS: But really, how often will it be used?  Once a month?  Is it worth worrying about a long run time if it is rarely used?