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

Optimized method

Former Member
0 Likes
748

Hello all!

I am running a select on a TRDIR which is taking hell lot of time. Is there any other "optimized" way of doing it?

Puru

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
721

Hello Puru,

Create secondary indexes for the fields for which you are passing in the where clause. It will optimize the performance.

Thanks,

Krishnakumar

6 REPLIES 6
Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
721

Hi,

Use table REPOSRC instaead of that.

and it is also taking time..

create the indexess on the table..

This will solve ur problem..

Cheers,

Simha.

Read only

Former Member
0 Likes
721

Hi,

can you show your select. and are you selecting all the entries or you have any specific conditions..

Regards

vijay

Read only

Former Member
0 Likes
721

Hello Puru,

Use Sorted type internal tables.

If useful reward.

Vasanth

Read only

Former Member
0 Likes
722

Hello Puru,

Create secondary indexes for the fields for which you are passing in the where clause. It will optimize the performance.

Thanks,

Krishnakumar

Read only

anversha_s
Active Contributor
0 Likes
721

hi,

some sugestions

************************

1. if u r using select * , avoid it. fetch the fields only u required.

2. give secondary index to the fields in the where clause.

3. after fetching into the internal tabel , sort the table.

4. avoid INTO CORESSPONDING in ur select query. it will take lot of time.

all the best.

if hlped rwrd points,

Rgds

anver

Read only

Former Member
0 Likes
721

Hello Puru,

Use Sorted type internal tables.

If useful reward.

Vasanth