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

something better than join table

Former Member
1,636

Hallo Abapers,

I have a programme to call the data from three tables and make segregation in some fields.
this has been developed on the join statement basis.

This program is taking sooooo much time now until we can see the result tabel (if we can). as we are talking here about millions of records !!!!

Do you have some Ideas or other methods that are better and effecter than join tables to achieve this???

Best Regards

Jenie

1 ACCEPTED SOLUTION
Read only

roberto_forti
Contributor
1,491

Hi Jennifer,

First of all, I suggest you consider analyzing that program issue before changing it.

Following some steps to analyses program performance.

1. SE30 or SAT (Runtime Analysis) transaction

2. ST05 - SQL Trace (Performance Trace) transaction

Attached excellent documentation about SQL Trace

https://wiki.scn.sap.com/wiki/display/SAPSQL/How+to+run+transaction+st05+to+trace+a+program%2C+trans...

Depends on which tables it has retrieved data is dangerous creating/activating database view.

Let us know the results.

Regards

5 REPLIES 5
Read only

P14397410
Participant
1,491

When you say "millions of records" do you mean in the tables or in the results? If the SELECT statement is fetching millions of rows, it will certainly take a lot of time no matter which method you use.

A join itself cannot be bad for performance regardless of how many rows exist in joined tables, provided the join conditions are used correctly and the WHERE clause is using the correct indexes.

If it is not against your company policies, post the entire SELECT statement here and someone can offer some help.

Read only

roberto_forti
Contributor
1,492

Hi Jennifer,

First of all, I suggest you consider analyzing that program issue before changing it.

Following some steps to analyses program performance.

1. SE30 or SAT (Runtime Analysis) transaction

2. ST05 - SQL Trace (Performance Trace) transaction

Attached excellent documentation about SQL Trace

https://wiki.scn.sap.com/wiki/display/SAPSQL/How+to+run+transaction+st05+to+trace+a+program%2C+trans...

Depends on which tables it has retrieved data is dangerous creating/activating database view.

Let us know the results.

Regards

Read only

ChrisSolomon
Active Contributor
0 Likes
1,491

You mean a "view" (ie vision?) ?

Read only

kiran_k8
Active Contributor
0 Likes
1,491

Jennifer,

If you post the code, you will be able to get more accurate replies.

You can explore, OPEN CURSOR/FETCH CURSOR/CLOSE CURSOR.

K.Kiran.

Read only

Former Member
0 Likes
1,491

Hi Jennifer,

on which DB is your system running?

Kind regards,
Martin